hms
extracts hour, minute and second of datetime or duration
Syntax
[h, m, s] = hms(dt)
Arguments
Description
[h, m, s] = hms(dt) returns the hour, minute and second values of input argument dt.
Examples
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)
See also
History
バージョン | 記述 |
2024.0.0 | Introduction in Scilab. |
2025.1.0 | hms accepts duration as input argument. |
Report an issue | ||
<< getdate | Time and Date | hours >> |