Chrono Mock
LanguageEnglish
Documentation Calculator

The window

Scenarios and calendars

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.

The Calculator tab in three columns. Left: Scenarios, searched for month, with Last day of month selected and its line on month-end closing. Middle: Build a date, starting from Today in the zone UTC-08:00 of this machine, with one step Jump to End of month, an Add step button, the Calendar set to none, and under it Analyze a pasted date with 04/08/2008 read as ambiguous: Tuesday 2008-04-08 the US way and Monday 2008-08-04 the Polish way. Right: the result Monday 2026-11-30, 23:59:59 UTC-08:00, what this date lands on: last day of the month, and every format with a Copy button.
A scenario on the left, the steps it is made of in the middle, and the result with every format on the right.

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

FieldWhat it does
Start fromToday at midnight, Now, or a Specific date. Same as --base.
Time zoneThe 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.
CalendarA 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.
StepWhat 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 toThe 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 dayThe 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 timeSets the time of day of the date so far. Same as --set-time.
Change time zoneShows 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.