Relative Time Calculator

Pick a date and, if you like, a time, and see how it reads relative to now: "3 days ago", "last month" or "in 2 hours". The wording is shown in English, Hindi, Bengali, Marathi, Tamil and Telugu, using the same rules your browser and apps use. Below it is the exact gap in years, months, days, hours, minutes and seconds, and the totals in days, hours, minutes and seconds. It updates every second.

Your device's time zone.

Everything runs in your browser. What you type never leaves this device.

Features

  • Past and future dates: "ago" and "in"

  • Six languages: English, Hindi, Bengali, Marathi, Tamil, Telugu

  • Words like yesterday, tomorrow and last month where the language has them

  • Exact gap in years, months, days, hours, minutes and seconds

  • Totals in days, hours, minutes and seconds

  • Live: the result updates every second

  • Runs in your browser; free, no signup

Handy for

How long ago was it?

See how long it has been since a payment, an order, a last call or a joining date.

App and website copy

Check how "2 hours ago" or "in 3 days" reads in Hindi or Tamil before you show it to users.

Developers

Compare your app's relative labels with the browser's Intl.RelativeTimeFormat output and its rounding.

Deadlines

See how far away a due date is, both rounded and exactly.

How the wording is chosen

Rounding to one unit

Relative time keeps one unit and rounds. This tool uses seconds under 45 seconds, minutes under 45 minutes, hours under 22 hours, days under a week, weeks under four weeks, months under 11 months and years after that. So 26 hours ago reads as "yesterday", and 40 days ago as "last month". The exact gap is shown underneath for when rounding is not enough.

Calendar months

The exact gap counts calendar months, so 31 January to 1 March is 1 month and 1 day, not a fixed 30 days. Days and times use your device's time zone.

In code

  • JavaScript: new Intl.RelativeTimeFormat('hi-IN', { numeric: 'auto' }).format(-1, 'day') gives the Hindi word for yesterday
  • Use numeric: 'always' for "1 day ago" instead of "yesterday"
  • For dates in other formats, see the ISO 8601 date formatter

Relative Time Calculator - FAQ