DateTime
Current DateTime
Returns the current dateTime –> learn more
Return type
dateTime
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any of: | false | (UTC (default)) |
New DateTime
Constructs a dateTime from a year, month, day, hour, minute, and second –> learn more
Return type
dateTime
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any integer | true | - | |
| any integer | true | - | |
| any integer | true | - | |
| any integer | true | - | |
| any integer | true | - | |
| any integer | true | - |
DateTime add
Add a period of time to a dateTime –> learn more
Return type
dateTime
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any integer | true | - | |
| any of: | true | ((e.g., days)) | |
| any dateTime | true | - |
DateTime diff
Calculate distance between two dateTimes –> learn more
Return type
integer
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any dateTime | true | - | |
| any dateTime | true | - | |
| any of: | true | ((e.g., days)) |
DateTime subtract
Subtract a period of time from a dateTime –> learn more
Return type
dateTime
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any integer | true | - | |
| any of: | true | ((e.g., days)) | |
| any dateTime | true | - |
DateTime truncate
Truncates a DateTime to the nearest boundary –> learn more
Return type
dateTime
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any dateTime | true | - | |
| any of: | true | ((e.g., minutes)) |
DateTime extract
Extracts the date or time part (e.g, hour) from a DateTime –> learn more
Return type
integer
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any of: | true | ((e.g., hour)) | |
| any dateTime | true | - |
Format dateTime
Returns a formatted string from a dateTime –> learn more
Return type
string
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any dateTime | true | - | |
| any string | true | (e.g., %Y-%m-%d %H:%M:%S) |
More details about format strings here
Parse dateTime
Parses a dateTime from a string –> learn more
Return type
dateTime
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any string | true | - | |
| any string | true | (e.g., %Y-%m-%d %H:%M:%S) | |
| any boolean | true | - |
More details about format strings here
Last updated