Datetime Parser
Function parsing strings to datetimes
Evaluation
This expression evaluates to a function of the form:
(string x) -> datetime
The function is consistent with parser semantics used for string to data conversion, for example by the CSV Input step.
Processing
String x
is converted into a datetime using the given pattern, locale, and default timezone. The resulting datetime value is returned.
If x
is equal to the configured nil value, nil
is returned.
If x
is nil
, nil
is returned.
Settings
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pattern |
string |
A Java DateTimeFormatter pattern. Example patterns below:
|
||||||||||||||||||||
Locale |
string | The locale determines names of months and days of week in the configured pattern. | ||||||||||||||||||||
Default Timezone |
string | If the data does not contain timezone information, the parsed datetime is associated with this default timezone. | ||||||||||||||||||||
Trim |
boolean |
If If |
||||||||||||||||||||
Nil Value |
datetime |
If the string to parse is equal to this value, the function returns nil . |