Mondoo Docs
Built-in FunctionsTime

unix

unix

Convert a time into Unix epoch seconds.


Examples

Get the current Unix epoch:

now.unix

Convert a parsed date into Unix epoch:

parse.date("2006-01-02", "2025-01-01").unix

On this page