Now

This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics.

Copied!
Now( )

Description

The Now function constructs a Timestamp representing the transaction’s start time.

Multiple calls to Now within a single transaction produce the same timestamp. During a temporal query, Now still means the transaction’s start time, not the temporal query’s specified timestamp.

Parameters

None.

Returns

A Timestamp which represents the transaction’s start time.

Examples

The following query returns a Timestamp for the transaction’s start time:

Copied!
Now()
Time("2021-06-21T21:21:27.237Z")
Query metrics:
  •    bytesIn:  12

  •   bytesOut:  47

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:   0

  • writeBytes:   0

  •  queryTime: 2ms

  •    retries:   0

\