Retrieve numerical date and time information
- Last UpdatedJul 24, 2024
- 1 minute read
In a script, you can use a variety of numerical system tags and one script function to retrieve information on the system time and date. These tags and the script function can be used in other mathematical operations. The following system tags and script functions are available:
|
Use |
To |
|---|---|
|
$Year |
Return the current year. |
|
$Month |
Return the current month of the year. |
|
$Day |
Return the current day of the month. |
|
$Hour |
Return the current hour of the day. |
|
$Minute |
Return the current minute of the hour. |
|
$Second |
Return the current second of the minute. |
|
$Msec |
Return the current milliseconds. |
|
$Time |
Return the time in milliseconds that have passed since midnight in the local time zone. |
|
$Date |
Return the number of whole days that have passed since the 1st January 1970 in the local time zone. |
|
$DateTime |
Return the number of days (including fractions of a day) that have passed since the January 01, 1970 in the local time zone. |
|
DateTimeGMT() |
Return the number of days (including fractions of a day) that have passed since the 1st January 1970 in Coordinated Universal Time (UTC). |