Edit

Share via


GETCURRENTTIMESTAMP (NoSQL query)

The GETCURRENTTIMESTAMP function returns the current timestamp in milliseconds since the Unix epoch.

Syntax

GETCURRENTTIMESTAMP()

Return types

Returns a numeric expression representing the current timestamp in milliseconds.

Examples

This section contains examples of how to use this query language construct.

Get the current timestamp

In this example, the GETCURRENTTIMESTAMP function is used to return the current timestamp.

SELECT VALUE {
  currentTimestamp: GETCURRENTTIMESTAMP()
}
[
  {
    "currentTimestamp": 1556916469065
  }
]