ecx:isInTimePeriod
- 1 Minute to read
- Print
- DarkLight
ecx:isInTimePeriod
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
The function ecx:isInTimePeriod verifies whether the current time is within one of the periods given as a parameter. The value returned is a Boolean data type.
Example
Message sendout is restricted to between 16:00 and 22:30 in the Europe/London time zone. The following function returns a true value if the current time is within a period of 6 hours and 30 minutes after 16:00:
${ecx:isInTimePeriod('16:00PT6H30M', 'Europe/London')}
Structure
ecx:isInTimePeriod(string, string)
Parameters
Parameter | Description |
---|---|
string | Specifies the time period used for comparison. Must be given in ISO 8601 format and only contain the local time part, for example, 18:00PT8H is equal to a period of 8 hours starting at 18:00. |
string | The time zone used as local time. If no time zone is given, 'Europe/Berlin' will be used as default. |
Was this article helpful?