Calculation Number Of Days

Instant date span, business days & live distribution

Unix Timestamp Days Between Calculator

Find elapsed days between timestamps.

Result
—

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.

  1. Enter the start timestamp

    Enter a Unix timestamp in seconds, such as 1767225600.

  2. Enter the end timestamp

    Enter the second timestamp in seconds.

  3. Subtract the seconds

    The calculator takes the absolute difference in seconds.

  4. 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.

SecondsDaysHoursWeeks
3,6000.041710.006
86,4001240.143
604,80071681
2,592,000307204.29
31,536,0003658,76052.14
29,116,8003378,08848.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.