Unix Timestamp Days Between Calculator
Find elapsed days between timestamps.
How the Unix Timestamp Days Between Calculator Works
The Unix Timestamp Days Between Calculator subtracts one Unix timestamp from another and divides by 86,400 seconds to return the exact days, including fractions, between 2 moments.
Enter the start timestamp
Enter a Unix timestamp in seconds, such as 1767225600.
Enter the end timestamp
Enter the second timestamp in seconds.
Subtract the seconds
The calculator takes the absolute difference in seconds.
Divide by 86,400
The result shows decimal days and full 24-hour days.
How the Count Is Calculated
The Unix Timestamp Days formula converts a seconds difference into days.
Days = | T2 − T1 | ÷ 86,400
Full days = floor(| T2 − T1 | ÷ 86,400)- T1, T2
- Unix timestamps: seconds since 1970-01-01 00:00:00 Coordinated Universal Time (UTC).
- 86,400
- Seconds in 1 day (24 × 60 × 60).
- Milliseconds
- Divide millisecond timestamps by 1,000 first.
Example: T1 = 1,767,225,600 (1 January 2026 UTC) and T2 = 1,796,342,400 (4 December 2026 UTC). The gap is 29,116,800 seconds, so the timestamps are 337 days apart.
Worked Examples
The table converts second differences into days, hours and weeks.
| Seconds | Days | Hours | Weeks |
|---|---|---|---|
| 3,600 | 0.0417 | 1 | 0.006 |
| 86,400 | 1 | 24 | 0.143 |
| 604,800 | 7 | 168 | 1 |
| 2,592,000 | 30 | 720 | 4.29 |
| 31,536,000 | 365 | 8,760 | 52.14 |
| 29,116,800 | 337 | 8,088 | 48.14 |
What the Tool Measures
A Unix Timestamp Days Between Calculator is a tool that measures the days between 2 Unix timestamps.
Unix time ignores leap seconds and time zones, so every Unix day holds exactly 86,400 seconds. The result is an elapsed-time count, not a local calendar-day count.
When to Use This Tool
There are 4 main uses of the Unix Timestamp Days Between Calculator, including log analysis and token expiry.
Log analysis
Engineers measure the gap between 2 log events.
Token expiry
Developers check how many days an API token stays valid.
Database records
Analysts compute account age from created_at timestamps.
Cache lifetimes
Teams check time-to-live (TTL) values in days.