devpocket.dev

Date Duration Calculator

Compare times across zones, add durations, find dates before or after today, and parse ISO 8601 durations.

Runs locally
Loading tool…

How to use

  1. In Difference, choose each input’s time zone or follow your device. Now fills that zone’s current time once. Exact totals include offsets; calendar parts and weekday counts use dates in the start zone.
  2. Add / subtract applies calendar years, months, weeks and days, then elapsed hours, minutes and seconds. Shorter months clamp to their final day.
  3. Date offset starts from today in the selected zone or a chosen date. Use positive N for after, negative N for before; business days skip weekends, not holidays. Copy the date, weekday, ISO week and day of year.
  4. ISO 8601 parses durations. Clock-change gaps are rejected; overlaps use the earlier occurrence.

FAQ

How are time zones and daylight saving changes handled?

Each date-time is interpreted in its selected zone; follow device is the default. Exact totals compare instants. Calendar parts and difference-mode business days use dates in the start zone. Non-existent local times are rejected; repeated times select the earlier instant. Calendar days preserve local clock time, while 24 elapsed hours may land at a different clock time after a DST change.

What happens when I add one month to January 31?

Month and year additions clamp to the final valid day of the target month: January 31 plus one month becomes February 28 or 29; February 29 plus one year becomes February 28.

How do I find a date N business days from today?

Open Date offset, choose Today and Business days, then enter N. Positive numbers move forward; negative numbers move backward. The starting date is not counted; Saturday and Sunday are skipped, but public holidays are not. Difference mode instead counts weekdays from the earlier UTC date, excluding the later date.

What is an ISO 8601 duration?

It is a machine-readable span such as P1Y2M3DT4H5M6S. Week form such as P2W is supported but cannot be mixed with other units. Dates and durations stay in memory; only options are saved on this device.

Related tools