systime_int

datetime

Returns the current system time as an integer timestamp

Syntax

systime_int()

Returns

integer

Integer Unix timestamp

Examples

Get integer timestamp
Input:
systime_int()
Output:
1735124445
Add integer timestamps
Input:
map({ts: systime_int()})
Output:
Add integer timestamp to records
Compute elapsed time
Input:
systime_int() - .created
Output:
Calculate time difference

The systime_int() function returns the current system time as an integer Unix timestamp (seconds since epoch), ensuring the result is always an integer type.

Usage

Use systime_int() when you need integer timestamps for compatibility with systems that require integer time values, or for efficient storage and calculations.