Date and time
27 commands. Toolkit id ooa.datetime.
| Command | What it does |
|---|---|
| Add to date | Add (or subtract, with a negative amount) a duration to a date. |
| Add working days | Move a date by a number of working days, skipping the weekend and holidays of a business calendar; a negative number moves back. The start date itself is not counted (1 from Friday is Monday) and 0 keeps the date. The time of day is kept. |
| Convert time zone | Show a date as the time in another time zone, as text with its offset (2026-11-10T14:30+05:30). |
| Count working days | Count the working days between two dates in a business calendar: the days after the start up to and including the end (the start too, when chosen). The count is negative when the end is before the start. |
| Date is after | True when the first date is later than the second. |
| Date is before | True when the first date is earlier than the second. |
| Date is between | True when the date lies between two dates, both included. |
| Dates are equal | True when both dates are the same moment, or the same day when the time is not included. |
| Difference between dates | Return end minus start in the chosen unit (may be fractional). |
| End of period | Return the last second (23:59:59) of the day, week (Sunday), month or year containing a date. |
| Format date | Format a date as text in a time zone, using a pattern such as dd/MM/yyyy HH:mm. |
| Get current date and time | The date and time now. Show it in your time zone with Format date (Local, the runner's own, for new steps). |
| Get part of date | Return one part of a date, such as the year, month, day of week, week of year or quarter, in a time zone. |
| Is after | Check whether the first date is later than the second. |
| Is before | Check whether the first date is earlier than the second. |
| Is equal | Check whether two dates are the same moment. |
| Is leap year | Check whether the year of a date, or a year number, is a leap year. |
| Is weekend | True when the date falls on Saturday or Sunday in the given time zone. |
| Is working day | Check whether a date is a working day in a business calendar: not on its weekend and not one of its holidays. |
| Is working day | True when the date is a working day in a business calendar: not on its weekend and not one of its holidays. |
| Next working day | Return the first working day after a date in a business calendar, or the date itself when it is a working day and same_day is on. The time of day is kept. |
| Previous working day | Return the last working day before a date in a business calendar, or the date itself when it is a working day and same_day is on. The time of day is kept. |
| Start of period | Return midnight at the start of the day, week (Monday), month or year containing a date. |
| Subtract from date | Subtract an amount of time from a date. |
| Text is a valid date | True when the text can be read as a date with the pattern. |
| Text to date | Read a date from text with a pattern such as dd/MM/yyyy, in the time zone the text is written in (Local, the runner's own, for new steps). |
| Within business hours | True between the start and end hours in the time zone, on weekdays (or every day). |