now

Full name: taxi.stdlib.dates.now

Signature

declare function now():Instant

Description

Returns the current UTC instant.

The output changes every time the function is called. Use @Format to control how the instant is serialised in query output.

// Stamp the current time on a record
find {
   @Format("yyyy-MM-dd'T'HH:mm:ssXXX")
   processedAt: Instant = now()
}
Next
Welcome to Taxi