What Time Was It X Minutes Ago?
Enter any current time and subtract any number of minutes or hours to find out exactly what time it was in the past.
Enter your values and click Calculate
How It Works
The reference time is converted to a JavaScript Date object using today's calendar date, with the hour and minute set to your inputs. The offset is computed as (hours × 60 + minutes) total minutes, then multiplied by 60,000 to convert to milliseconds, and subtracted from the reference timestamp. JavaScript's Date arithmetic handles midnight rollovers and daylight-saving transitions automatically. The result is formatted in both 12-hour AM/PM and 24-hour notation, and a day label notes whether the past time crossed into the previous calendar day. For example, a reference time of 00:30 AM with an offset of 90 minutes produces a result of 11:00 PM on the previous day — the midnight boundary is detected automatically, and the output is labeled as previous day so there is no ambiguity. The 24-hour format is used for input to avoid AM/PM entry errors when the reference time is near midnight.