How to convert current date and time to Unix epoch time?

Primary tabs


The Caché epoch is January 1, 1840  and the Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 . How do you convert the current date and time to Unix epoch time?

Replies

There are also some Epoch conversion methods in the %Library.UTC class.