About Relative Time Calculator
Enter a date and time to see how it reads relative to now: “in 2 hours”, “yesterday”, “3 months ago”. Compare it with another moment instead by filling in “Compared with”. The phrase is shown in the language you choose and, in a table, in sixteen languages at once.
This is the wording apps and websites use for timestamps on posts and messages. You can fix the unit, choose words such as “tomorrow” or always a number, and pick long, short or narrow forms, then copy the exact phrase a browser would produce.
How it works
- The difference between the two moments is measured in milliseconds, so time zones only matter for reading a time that names none.
- With “Best fit”, the largest unit that keeps the rounded amount small is chosen: seconds under a minute, then minutes, hours, days, weeks, months and years.
- The wording itself comes from your browser’s built-in relative time formatting for each language.
Questions
Why does 36 hours ago say “2 days ago” and not “yesterday”?
The phrase is a rounded length of time, not a count of calendar days: 36 hours rounds to 2 days. Words such as “yesterday” appear only when the rounded amount is exactly one day.
How long is a month here?
A twelfth of an average Gregorian year, about 30.44 days, and a year is 365.24 days. That keeps every unit a fixed length, which is how relative wording is normally produced.
Will the phrases match what my app shows?
They match apps that use the browser’s Intl.RelativeTimeFormat with the same unit and rounding. Libraries that pick units with other thresholds can round differently.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.