period

ISO 8601 period. A Period uses date-based values - years, months, days.

Optional Parameters

  • Value range constraint - period( min, max )

An optional range can be specified to a period in order to specify a restriction on permitted values. The values for min and max can be a ISO 8601 period string value or * to indicate wildcard maximum or minimum permitted value.

Examples

  • period("P2D","P5D") A period between 2 and 5 days.
  • period("P1Y,"P5Y") A period between 1 to 5 years.
  • period("P1W,"P4W") A period between 1 to 54 weeks.
  • period("P10D",*) A period between 10 days and highest period supported by target language.