Timestamp Add/Subtract Calculator

Enter a Unix timestamp (or use the current time), choose to add or subtract, then specify days, hours, minutes, and seconds to offset. Your result shows the new Unix timestamp along with the human-readable date and time so you can verify the output at a glance.

Enter the Unix timestamp (seconds since Jan 1, 1970 UTC) you want to offset.

days
hrs
min
sec

Results

Result Unix Timestamp

--

Result Date & Time (UTC)

--

Total Offset Applied

--

Base Date & Time (UTC)

--

Frequently Asked Questions

What is a Unix timestamp?

A Unix timestamp is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC (known as the Unix Epoch). It is a standard way to represent a specific point in time in computing, independent of time zones.

How do I add time to a Unix timestamp?

To add time to a Unix timestamp, simply convert your desired offset into seconds and add it to the original timestamp. For example, adding 1 hour means adding 3,600 seconds. This calculator handles the conversion for you — just enter days, hours, minutes, and seconds separately.

How do I subtract time from a Unix timestamp?

Select the 'Subtract (−)' option, enter the days, hours, minutes, and/or seconds you want to go back in time, and the calculator will deduct that total offset from your base timestamp. The result is the earlier Unix timestamp.

Can I use the current time as my base timestamp?

Yes — you can find your current Unix timestamp by checking online tools or running Date.now() / 1000 in a browser console. Paste that value into the Base Unix Timestamp field to offset from right now.

What happens if I leave some offset fields blank or at zero?

Any field left at 0 simply contributes nothing to the offset. For example, if you only fill in hours and leave days, minutes, and seconds at 0, only the hours offset is applied. This lets you do quick single-unit adjustments without any issues.

Why might my result timestamp be negative?

A negative Unix timestamp represents a date before January 1, 1970 UTC. If you subtract more time than the base timestamp contains, the result goes before the Epoch. Most modern systems support negative timestamps, but some older systems may not handle them correctly.

How are the days, hours, minutes, and seconds converted to seconds for the calculation?

Each unit is multiplied by its second equivalent: 1 day = 86,400 seconds, 1 hour = 3,600 seconds, 1 minute = 60 seconds, and 1 second = 1 second. All four are summed to get the total offset, which is then added to or subtracted from the base timestamp.

Does this calculator account for time zones?

Unix timestamps are always in UTC (Coordinated Universal Time) by definition, so the calculation itself is time-zone agnostic. The human-readable date displayed is shown in UTC. To get your local time, you would need to apply your UTC offset to the result.

More Time & Date Tools