p = posixtime(t)
| Parameter | Description |
|---|---|
| inputs | A datetime array. |
| Parameter | Description |
|---|---|
| output | A double array of elapsed seconds since 1970-01-01 00:00:00. |
Convert datetime values to seconds elapsed since the POSIX epoch.
posixtime is useful for interchange with systems that represent times as seconds from the Unix epoch.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
posixtime(datetime(1970, 1, 1))
posixtime(datetime(1970, 1, 2))
| Version | Description |
|---|---|
| 2.0.0 | initial version |