Cypher Timestamp Function

timestamp() returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. It is the equivalent of datetime().epochMillis. In other words, timestamp function returns the amount of milliseconds passed since epoch, i.e, Midnight of 1st January 1970.

Syntax:timestamp()

Returns: An Integer.

Example

RETURN timestamp()

The value returned will be an integer denoting the amount of milli-seconds passed since the epoch at the time of running this command. Which at the time of writing this was, 1589028481704.

Considerations

  • timestamp() will return the same value during one entire query, even for long-running queries.
    So for long queries, that may take many milliseconds, only one value of timestamp will be returned.

Example

RETURN timestamp()

Returns the following returns the following result when run at a few moments later.

RETURN timestamp()
1589029215381

Learn More