Function: sys.now

Returns Unix time, as a floating-point number.

The returned value has nanosecond precision.

It is not guaranteed to be monotonic.

Returns

Unix time, as a floating-point number of seconds elapsed since Epoch (00:00:00 UTC on 1 January 1970).

Examples

# Return Unix time as a floating-point number
# For example, returns `1715172805.2818468`
- returnStep:
    return: ${sys.now()}

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.