Calculator
Works out a test date, shows it in every format you might paste somewhere, and reads a pasted
date back. It only counts: nothing is started. The same answers come from
chrono calc.
Scenarios
The list on the left holds the scenarios the calculator can work out, each with one line on what it tests, and a box to search them. Picking one fills in the steps in the middle. A scenario that asks for a value, such as a date of birth, gets a field for each one. Under the list stands a reminder that a scenario is a starting point, not a certificate that the test is complete. Scenarios lists them all.
Build a date
| Field | What it does |
|---|---|
| Start from | Today at midnight,
Now, or a Specific date. Same as
--base. |
| Time zone | The zone the start is read in, because today is a
different day either side of midnight. The zone of this machine unless you pick another. Same
as --zone. |
| Steps | + Add step adds one, and they run top to bottom. ✕ removes one. The kinds are below. |
| Calendar | A holiday
calendar, which counting business days and Nearest business day need. With one picked, the
result also says whether the day is a business day. Same as
--calendar. |
| Step | What it does |
|---|---|
| Shift ± | Moves the date by a number of seconds, minutes, hours,
days, weeks, months, quarters, years or business days. A month after 31 January is the last day
of February. Same as --shift. |
| Jump to | The start or the end of the month, the quarter or the
year. A start is 00:00:00 on the first day, an end 23:59:59 on the last. Same as
--snap. |
| Nearest business day | The next or the previous business day, and
the same day when it already is one. Next 29 February is here too. Same as
--nearest. |
| Set time | Sets the time of day of the date so far. Same as
--set-time. |
| Change time zone | Shows the same moment in another zone: the
date and time on the clock change, the moment does not. Steps after it count in that zone. Same
as --to-zone. |
The result
- The date with its day of the week, the time and the zone. For a scenario, its name and line stand above.
- What this date lands on names an edge the date falls on, such as the last day of the month.
- All formats shows the date as ISO, as US and Polish dates, as Unix time in seconds and milliseconds, as a Windows FILETIME and in the RFC 1123 form, each with a Copy button.
- Custom format writes it with your own mask, such as
yyyy-MM-dd HH:mm:ss. Same as--format. - Details gives the day of the week, the ISO and US week, the quarter, the day of the year and whether the year is a leap year.
- Copy as command copies the PowerShell command that gives the same result in a terminal, for a script or a ticket.
- Use this date sends the date, the time and the zone to Run an app, ready to start. It works when the zone is one a session can run in.
Analyze a pasted date
Paste a date from a log, a ticket or a database to see how it reads. A date that reads two ways,
such as 04/08/2008, gets both readings: 8 April the US way, 4 August the Polish way.
A number, such as Unix time, is a moment rather than a date, so it is shown in the zone chosen
above, and so is a date that carries its own offset from UTC. Same as
--analyze.