timestamp (Timestamp)

The function $timestamp() returns the time stamp of the given date compatible value in milliseconds, or else signals an error in the calculation.
If no parameter is given, the time stamp of the moment of execution will be returned.

Syntax

$timestamp([date])

Parameter

Name

Description

date
(optional)

A date value conform value from which the time stamp gets extracted.

Supported types are:

  • Date (native Javascript Date)

  • Timestamp (Timestamp object)

  • Time (Time object)

  • DateTime (Date with time and time zone)

  • Number, also as text (Timestamp in milliseconds)

Return value

The timestamp of the given date value in milliseconds (type: Long). If no date value is specified, the timestamp of the time of execution will be returned.

Examples

Executed on 2019/12/04 at 08:48 a.m.

Syntax

Result

Description

$timestamp()

1575445694956

Timestamp at the time of execution.

$timestamp($dateCalc(10h 0m 0s 0S))

1575450000000

Timestamp of the execution date at 10:00 o'clock.