Time Ago Calculator

Turn a date into a phrase like 3 hours ago, or a phrase or raw timestamp back into a date — with local time, UTC and Unix seconds. Free, in your browser.

Understands “3 hours ago”, “in 2 weeks”, “-90m”, epoch seconds or milliseconds, and ISO 8601. m is minutes; mo is months.

Relative time
3 hours ago
Local time
16/09/2026, 23:27:05
UTC
2026-09-16T23:27:05Z
Unix seconds
1789601225

🔒 Calculated live in your browser — nothing is uploaded.

Both directions

Pick a date and time and the tool prints the relative phrase, ticking on its own as the clock moves. Or type the phrase instead — “3 hours ago”, “in 2 weeks”, “-90m”, “1 day 3 hours ago” — and it works out which moment that is. Paste an epoch timestamp or an ISO 8601 string into the same box and it reads that too, which is what you actually have when the question came from a log line.

Every form of the same moment

Whichever way you gave it, the answer appears as the phrase, the local time in your own zone, the UTC timestamp, and Unix seconds — each with its own copy button. That is the conversion that used to mean opening a second tool: a log line is in UTC or epoch, and the question is almost always how long ago that was in your own day. The picker takes seconds too, not just minutes.

How the phrase is read

Direction comes from the words: “ago” or “before” for the past, “in”, “from now” or “later” for the future, and a leading minus or plus overrides either. A phrase with no direction at all is read as the past, which is what a bare “3 hours” next to a timestamp means everywhere it appears. Units can be written out or shortened; m is minutes and mo is months, the convention every log format uses. Months and years move by the calendar rather than by an average length, so a month before 31 March is the end of February.

Frequently asked questions

Can I go the other way — a phrase into a timestamp?

Yes, that is the second box. Type “3 hours ago”, “in 2 weeks”, “-90m” or “1 day 3 hours ago” and you get the moment, in local time, UTC and Unix seconds. Clear the box and the date picker takes over again.

Does it accept a Unix timestamp?

Yes — ten digits are read as seconds and thirteen as milliseconds — along with ISO 8601 strings, with or without a zone. A bare date such as 2026-06-15 is read as midnight UTC, since a log line saying that means that day everywhere.

Is “m” minutes or months?

Minutes. “mo” is months. That is what every log format and duration string means by them, and the alternative reading would silently be about forty-three thousand times larger.

Which timezone does it use?

Your own, for the picker and the local-time row. The UTC and Unix rows are absolute, so they are the ones to copy when the answer is going somewhere else. Nothing is guessed about where you are beyond what your browser already reports.

Is anything uploaded?

No. Everything runs in your browser. Neither the times you enter nor the phrases you type are sent anywhere or stored.