systime
datetimeReturns the current Unix timestamp in seconds
Syntax
systime() Returns
number Unix timestamp (seconds since epoch)
Examples
Get current Unix timestamp
Input:
systime() Output:
1735124445 Add numeric timestamps
Input:
map({created_ts: systime()}) Output:
Add Unix timestamp to records Compute time differences
Input:
systime() - .start_ts Output:
Calculate elapsed seconds The systime() function returns the current system time as a Unix timestamp (seconds since January 1, 1970 UTC).
Usage
Use systime() to get numeric timestamps for calculations, store timestamps in a compact format, or measure elapsed time in seconds.