extracts hour, minute and second of datetime or duration
[h, m, s] = hms(dt)
[h, m, s] = hms(dt) returns the hour, minute and second values of input argument dt.
dt = datetime([2025 1 29 1 25 30; 2025 1 29 3 43 12; 2025 1 29 15 24 46]); [h, m, s] = hms(dt) | ![]() | ![]() |
| Version | Description |
| 2024.0.0 | Introduction in Scilab. |
| 2025.1.0 | hms accepts duration as input argument. |