Skip to content

Time

Time (time)

Time processing: parsing and formatting time values.

Transform json

Minimal example

actions:
- time: {}
JSON
{
"actions": [
{
"time": {}
}
]
}

Contents

Fields

FieldTypeRequiredDescription
descriptionstringdescribe this step.
conditionlua-expression (string)Only run this action if the specified condition is met.
Examples: 2 * count()
input-fieldfield (string)Field that provides an input time. If not provided, use current time.
Examples: data_field
output-fieldfield (string)Field to contain time as a string.
Examples: data_field
input-timezonestringIf input is provided, this is its timezone.
output-timezoneiana-timezone (string)Timezone for output time.
Examples: UTC, CAT
input-formattime-format (string)Time format for input time, if provided.
input-formatsstring[]Multiple input time formats which will be tried in turn for conversion.
output-formattime-format (string)Time Format for output time. Default is “%Y-%m-%dT%H:%M:%S%.3fZ”.
time-range-conditionsTime Range ConditionsDescribe how special time ranges are interpreted.
localLocalTreat the following fields as using the local timezone, if none are specified the utc timezone is assumed.
Allowed values: input, output, both, utc
deltaDeltaAdd or subtracts specified amount of time to the timestamp (now is used if input-field is not specified).
zero-timeboolean (bool)Set the time component of the output time to 00:00:00.000.
suppress-warningsboolean (bool)Suppress warnings generated by this action.

Schema

Delta Options

OptionNameTypeDescription
add-timeAdd TimestringField containing the start of the current window.
subtract-timeSubtract TimestringField containing length of the window.

Time Range Conditions - Time Range Output Fields

FieldTypeRequiredDescription
start-fieldfield (string)Field containing the start of the current window.
Examples: data_field
length-fieldfield (string)Field containing length of the window.
Examples: data_field

Time Range Conditions Fields

FieldTypeRequiredDescription
timesstring[]
output-fieldsmap (object)
time-range-outputTime Range Output

Local Options

ValueDescription
inputInput
outputOutput
bothBoth
utcUtc