Instant Transformer
Transforms an existing Instant to a new Instant.
Configuration
Section titled “Configuration”| Name | Description | Default value | Mandatory | Expanded |
|---|---|---|---|---|
src | Property containing the source Instant. | N/A | ||
src_pattern | Instant pattern. ISO-8601 format | "yyyy-MM-ddTHH:mm:ss.ffffffZ" | ||
src_tz | Instant time zone. | "UTC" | ||
dest | Property containing the created Instant. | N/A | ||
dest_pattern | Instant pattern. ISO-8601 format | "yyyy-MM-ddTHH:mm:ss.ffffffZ" | ||
dest_tz | Instant time zone. | "UTC" | ||
duration | Instant duration. ISO-8601 duration format PnDTnHnMn.nS | |||
remove_existing_dest | Flag to remove any value pre-existing in destination-property. To avoid creating a multi-value property. | false |
{ "name": "InstantTransformer", "config": { "src": "instant", "src_pattern": "yyyy-MM-ddTHH:mm:ss.ffffffZ", "src_tz": "GMT-1", "dest": "instant_copy", "dest_pattern": "yyyy-MM-dd HH:mm:ss", "dest_tz": "UTC" }}Duration examples
Section titled “Duration examples”"PT20.345S" -- parses as "20.345 seconds""PT15M" -- parses as "15 minutes" (where a minute is 60 seconds)"PT10H" -- parses as "10 hours" (where an hour is 3600 seconds)"P2D" -- parses as "2 days" (where a day is 24 hours or 86400 seconds)"P2DT3H4M" -- parses as "2 days, 3 hours and 4 minutes""P-6H3M" -- parses as "-6 hours and +3 minutes""-P6H3M" -- parses as "-6 hours and -3 minutes""-P-6H+3M" -- parses as "+6 hours and -3 minutes""+PT1H20M" -- parses as "+1 hour and +20 minutes"