Temporal predicates
Reference documentation for Expressif predicates in the temporal scope.
| Name | Overview |
|---|---|
is-after | Returns true if the temporal value passed as argument is chronologically after the temporal value passed as parameter. Returns false otherwise. |
is-after-or-same-instant | Returns true if the temporal value passed as argument is chronologically after the temporal value passed as parameter or if the two values represent the same instant . Returns false otherwise. |
is-before | Returns true if the temporal value passed as argument is chronologically before the temporal value passed as parameter. Returns false otherwise. |
is-before-or-same-instant | Returns true if the temporal value passed as argument is chronologically before the temporal value passed as parameter or if the two values represent the same instant . Returns false otherwise. |
is-business-day | Returns true if the date passed as the argument doesn’t correspond to a Saturday or a Sunday. Returns false otherwise. |
is-contained-in | Returns true if the temporal value passed as argument is between the lower bound and the upper bound defined in the interval. Returns false otherwise. |
is-in-the-future | Returns true if the date passed as argument is after today. Returns false otherwise. |
is-in-the-future-or-now | Returns true if the dateTime passed as argument is after now. If a Date is passed as argument, it returns true if the date is today or after. Returns false otherwise. |
is-in-the-future-or-today | Returns true if the date passed as argument is today or a date after. If a DateTime is passed as argument, it must be today or after. Returns false otherwise. |
is-in-the-past | Returns true if the date passed as argument is before today. Returns false otherwise. |
is-in-the-past-or-now | Returns true if the dateTime passed as argument is before now. If a Date is passed as argument, it returns true if the date is today or before. Returns false otherwise. |
is-in-the-past-or-today | Returns true if the date passed as argument is today or a date before. If a DateTime is passed as argument, it returns true if the date of this datetime is today or any other date before today. Returns false otherwise. |
is-leap-year | Returns true if the year of the dateTime value passed as the argument is a leap year. If the argument is not a dateTime but a numeric, returns true if the integer part of this value corresponds to a year that is a leap year. Returns false otherwise. |
is-on-the-day | Returns true if the argument is of type DateOnly or of type DateTime but the Time part is set at exactly midnight. Returns false otherwise. |
is-on-the-hour | Returns true if the argument is of type DateTime and the minutes, seconds and milliseconds are all set at 0. Returns false otherwise. |
is-on-the-minute | Returns true if the argument is of type DateTime and the seconds and milliseconds are all set at 0. Returns false otherwise. |
is-same-instant | Returns true if the temporal value passed as argument is equal to the temporal value passed as parameter. |
is-today | Returns true if the date passed as argument is representing the current date. Returns false otherwise. |
is-tomorrow | Returns true if the date passed as argument is representing the next date compared to the current date. Returns false otherwise. |
is-weekday | Returns true if the date passed as the argument corresponds to the weekday passed as the parameter. Returns false otherwise. |
is-weekend | Returns true if the date passed as the argument corresponds to a Saturday or a Sunday. Returns false otherwise. |
is-within-current-month | Returns true if the date passed as argument is part of the same month than the current date. Returns false otherwise. |
is-within-current-week | Returns true if the date passed as argument is part of the same week than the current date. A week is starting on Monday and ending on Sunday. Returns false otherwise. |
is-within-current-year | Returns true if the date passed as argument is part of the same year than the current date. Returns false otherwise. |
is-within-last-month | Returns true if the date passed as argument is part of the month preceding than the current month. Returns false otherwise. |
is-within-last-week | Returns true if the date passed as argument is part of the week preceding the current week. A week is starting on Monday and ending on Sunday. Returns false otherwise. |
is-within-last-year | Returns true if the date passed as argument is part of the year preceding the current year. Returns false otherwise. |
is-within-next-days | Returns true if the date passed as argument is between tomorrow and the count of days after the current date. Returns false otherwise. |
is-within-previous-days | Returns true if the date passed as argument is between the count of days before the current date and yesterday (both included). Returns false otherwise. |
is-within-upcoming-month | Returns true if the date passed as argument is part of the month following than the current month. Returns false otherwise. |
is-within-upcoming-week | Returns true if the date passed as argument is part of the week following the current week. A week is starting on Monday and ending on Sunday. Returns false otherwise. |
is-within-upcoming-year | Returns true if the date passed as argument is part of the year following the current year. Returns false otherwise. |
is-yesterday | Returns true if the date passed as argument is representing the previous date compared to the current date. Returns false otherwise. |