Skip to main content

MinMaxDatetime

Compares the provided date against optional minimum or maximum times. The max_datetime serves as the ceiling and will be returned when datetime exceeds it. The min_datetime serves as the floor.

  • type: object
  • required: ["type","datetime"]

type​

  • Required: Yes
  • type: string
  • enum: ["MinMaxDatetime"]

datetime​

Datetime value.

  • Required: Yes
  • type: string
  • Available variables: config

Examples:

2021-01-01T00:00:00.000Z
2021-01-01T00:00:00.000Z
{{ config['start_time'] }}
{{ now_utc().strftime('%Y-%m-%dT%H:%M:%SZ') }}

datetime_format​

Format of the datetime value. Defaults to "%Y-%m-%dT%H:%M:%S.%f%z" if left empty. Use placeholders starting with "%" to describe the format the API is using. The following placeholders are available:

  • %s: Epoch unix timestamp - 1686218963
  • %s_as_float: Epoch unix timestamp in seconds as float with microsecond precision - 1686218963.123456
  • %ms: Epoch unix timestamp - 1686218963123
  • %a: Weekday (abbreviated) - Sun
  • %A: Weekday (full) - Sunday
  • %w: Weekday (decimal) - 0 (Sunday), 6 (Saturday)
  • %d: Day of the month (zero-padded) - 01, 02, ..., 31
  • %b: Month (abbreviated) - Jan
  • %B: Month (full) - January
  • %m: Month (zero-padded) - 01, 02, ..., 12
  • %y: Year (without century, zero-padded) - 00, 01, ..., 99
  • %Y: Year (with century) - 0001, 0002, ..., 9999
  • %H: Hour (24-hour, zero-padded) - 00, 01, ..., 23
  • %I: Hour (12-hour, zero-padded) - 01, 02, ..., 12
  • %p: AM/PM indicator
  • %M: Minute (zero-padded) - 00, 01, ..., 59
  • %S: Second (zero-padded) - 00, 01, ..., 59
  • %f: Microsecond (zero-padded to 6 digits) - 000000, 000001, ..., 999999
  • %_ms: Millisecond (zero-padded to 3 digits) - 000, 001, ..., 999
  • %z: UTC offset - (empty), +0000, -04:00
  • %Z: Time zone name - (empty), UTC, GMT
  • %j: Day of the year (zero-padded) - 001, 002, ..., 366
  • %U: Week number of the year (Sunday as first day) - 00, 01, ..., 53
  • %W: Week number of the year (Monday as first day) - 00, 01, ..., 53
  • %c: Date and time representation - Tue Aug 16 21:30:00 1988
  • %x: Date representation - 08/16/1988
  • %X: Time representation - 21:30:00
  • %%: Literal '%' character

Some placeholders depend on the locale of the underlying system - in most cases this locale is configured as en/US. For more information see the Python documentation.

  • Required: No
  • type: string
  • default: ``

Examples:

%Y-%m-%dT%H:%M:%S.%f%z
%Y-%m-%d
%s

max_datetime​

Ceiling applied on the datetime value. Must be formatted with the datetime_format field.

  • Required: No
  • type: string
  • Available variables: config

Examples:

2021-01-01T00:00:00Z
2021-01-01

min_datetime​

Floor applied on the datetime value. Must be formatted with the datetime_format field.

  • Required: No
  • type: string
  • Available variables: config

Examples:

2010-01-01T00:00:00Z
2010-01-01

$parameters​

  • Required: No
  • type: object