Skip to main content

GetTime

This Script is part of the Common Scripts Pack.#

Retrieves the current date and time.

Script Data#


NameDescription
Script Typejavascript
TagsUtility

Inputs#


Argument NameDescription
dateThe date to use in the object.
dateFormatThe date format for the result. Can be "ISO", "GMT", "UTC", "Locale", "Date", "Year", "Month", "Day", "DayInWeek", "Hours".
contextKeyThe prefix the keys in the context for the results.
monthsAgoSubtracts monthsAgo months from current time.
minutesAgoSubtracts minutesAgo minutes from current time.
hoursAgoSubtracts hoursAgo hours from current time.

Outputs#


PathDescriptionType
TimeNowUnixThe number of milliseconds since 1970/01/01.Unknown
TimeNowThe current time in ISO format.Unknown