d = milliseconds(x)
x = milliseconds(d)
| Parameter | Description |
|---|---|
| inputs | Numeric millisecond counts or duration arrays. |
| Parameter | Description |
|---|---|
| output | A duration array for numeric input, or double millisecond counts for duration input. |
Create durations from milliseconds or convert durations to milliseconds.
Numeric input is divided by 1000 before storage as elapsed seconds. Duration input is multiplied by 1000.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
d = milliseconds([250 500])
seconds(d)
milliseconds(seconds(2))
| Version | Description |
|---|---|
| 2.0.0 | initial version |