Date and time operations.
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Members
-
<static, constant> UNITS
-
- Default Value:
-
- ["Seconds (s)","Milliseconds (ms)","Microseconds (μs)","Nanoseconds (ns)"]
- Source:
-
<static, constant> DATETIME_FORMATS
-
- Default Value:
-
- ["{\"name\":\"Standard date and time\",\"value\":\"DD/MM/YYYY HH:mm:ss\"}","{\"name\":\"American-style date and time\",\"value\":\"MM/DD/YYYY HH:mm:ss\"}","{\"name\":\"International date and time\",\"value\":\"YYYY-MM-DD HH:mm:ss\"}","{\"name\":\"Verbose date and time\",\"value\":\"dddd Do MMMM YYYY HH:mm:ss Z z\"}","{\"name\":\"UNIX timestamp (seconds)\",\"value\":\"X\"}","{\"name\":\"UNIX timestamp offset (milliseconds)\",\"value\":\"x\"}","{\"name\":\"Automatic\",\"value\":\"\"}"]
- Source:
-
<static, constant> INPUT_FORMAT_STRING
-
- Default Value:
-
- DD/MM/YYYY HH:mm:ss
- Source:
-
<static, constant> OUTPUT_FORMAT_STRING
-
- Default Value:
-
- dddd Do MMMM YYYY HH:mm:ss Z z
- Source:
-
<static, constant> TIMEZONES
-
- Source:
-
<static, constant> FORMAT_EXAMPLES
-
- Source:
Methods
-
<static> run_from_unix_timestamp(input, args)
-
From UNIX Timestamp operation.
Parameters:
Name Type Description input
number args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_to_unix_timestamp(input, args)
-
To UNIX Timestamp operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- number
-
<static> run_translate_format(input, args)
-
Translate DateTime Format operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- html
-
<static> run_parse(input, args)
-
Parse DateTime operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- html