d = hours(x)
x = hours(d)
| Parameter | Description |
|---|---|
| inputs | Numeric hour counts or duration arrays. |
| Parameter | Description |
|---|---|
| output | A duration array for numeric input, or double hour counts for duration input. |
Create durations from hours or convert durations to hours.
hours is an elapsed-time conversion helper. Numeric input is stored as seconds in a duration object with hour display format.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
d = hours([1 2])
seconds(d)
hours(minutes(90))
| Version | Description |
|---|---|
| 2.0.0 | initial version |