now

datetime

Returns the current timestamp

Syntax

now()

Returns

timestamp

The current date and time

Examples

Get the current timestamp
Input:
now()
Output:
"2025-12-25 10:30:45"
Add timestamps to data
Input:
map({timestamp: now()})
Output:
Add current timestamp to records
Track when data was processed
Input:
map(. + {processed_at: now()})
Output:
Add processing timestamp

The now() function returns the current date and time as a timestamp, useful for timestamping data and calculating time differences.

Usage

Use now() to add timestamps to records, calculate elapsed time, or filter data based on the current time.