tamper[box]

Unix Timestamp Converter

Create edge cases for date handling

Log number or bug-report date? See the exact instant it means, in every format, and what breaks around it.

Create and convert test timestamps from seconds to nanoseconds, exercise time zones and boundary dates, and inspect precision loss locally in your browser. Jump to: What does it mean?, How to fix it, Break it, Ask your agent.

Example 1760000000, seconds from a server log. Replace it in the box on the left.

One instant, assuming seconds.

Assumed seconds from digit count. Override the input unit if needed.

  • PassFits signed 32-bit seconds

Your value stays in your browser. Timestamps, dates and whole batches are converted here and never uploaded.

Nothing is sent or stored. No server request is made for any input. Take it further moves a value to another tab through same-site tab memory, never through a URL.

Findings

    Thursday, 9 October 2025 · 08:53:20 UTC

    Day 282 of the year, ISO week 41, common year (UTC calendar)

    Every format

    Choose formats from the menus · Weekday dates update as you type · Other edits: Enter applies, Esc restores
    Shown here only
    Seconds
    Milliseconds
    Microseconds
    Nanoseconds
    Custom template

    Adjust this instant

    Shift
    Arrow keys change the amount. Alt with an arrow key shifts the instant.
    Snap to
    Now
    Day
    Week
    Month
    Year

    Calendar periods in UTC; weeks start on Monday. End is one nanosecond before the next period, and a DST day can last 23 or 25 hours.

    Compare with another instant

    Read with the input unit, zone and repeated-time choice

    Uses the input unit, input time zone and repeated-time choice.

    Use in code

    Take it further

      What this result means

      Written for the example. Convert your own value and every card is rewritten for it.

      • The value 1760000000 was read as Unix seconds because it has 10 digits; that is 2025-10-09T08:53:20Z. The unit was guessed, not stated. Converted with Tamperbox in the browser.
        
        How do I tell from a log line whether a timestamp is in seconds or milliseconds, and what should the field name say?
        
        The check came from Tamperbox /unix-timestamp. Its method and limits are at https://docs.tamperbox.dev/tools/unix-timestamp.md; read them before relying on the result.

        Connect Tamperbox MCP and the agent can run this check itself, with the same limits.

      • If the date looks wrong by decades or thousands of years, the unit was guessed wrong. Pick the unit yourself under Read the number as, and the date moves to where it belongs.

      • The same digits read as milliseconds would be 21 January 1970. The unit list shows every reading, so a wrong guess is visible where it is fixed. Everything else about this instant is exact: it fits signed 32-bit seconds and sits inside the years this tool converts.

        • Name the unit in the field: created_at_ms or expires_s, not just timestamp.
        • Write dates with their offset (2025-10-09T08:53:20Z), never a local time without one.
        • Store and compare in UTC; convert to a zone only to display.
        • Keep seconds in a 64-bit integer; signed 32-bit seconds run out on 19 January 2038.
        • Confirm the unit at the source, in the code that wrote the value or the field it came from.
        • Choose that unit under Read the number as, so the guess becomes a fact and the date is final.

        When the date matches the event you are looking for, copy the format you need from Every format.

      • Instants from the year 0001 to 9999 in UTC, with precision down to the nanosecond. Up to 20,000 characters and 200 lines per batch. Shifts use elapsed time (a day is 24 hours); calendar boundaries follow the display zone. The Now control and relative times use your device clock.

        Nothing you enter is stored.

      How it works

      Every value is read in your browser with integer arithmetic on nanoseconds, so no precision is lost before a date is formatted. A plain number is an epoch value whose unit is guessed from its digit count unless you choose one; ISO 8601 and HTTP dates are read as written, and a date without an offset is read in the zone you pick. The verdict says whether the result is one exact instant or an assumption, every format of that instant is one Copy away, and a batch converts line by line with failed lines kept in place.

      The full method, every rule and worked examples are on docs.tamperbox.dev.

      Limits and interpretation

      Auto unit detection is a hint from the digit count, not proof: a unit you select always wins. Instants run from the year 0001 to 9999 in UTC; precision finer than a nanosecond is rejected. Natural-language dates, slash dates and exponent notation are not read, because each has more than one meaning. Time zone rules come from your browser's IANA database; a local time skipped by a clock change is rejected, and a repeated one must be chosen as Earlier or Later. Unix time ignores leap seconds. The 32-bit check describes systems that keep seconds in a signed 32-bit integer, not Unix time itself. Input is limited to 20,000 characters and 200 non-empty lines, 500 characters per value. Shifts use elapsed time (a day is 24 hours); calendar boundaries follow the display zone. Nothing is stored.

      Frequently asked questions

      How do I know whether a timestamp is in seconds or milliseconds?

      By its size. Ten digits is seconds and lands in the current decades; thirteen digits is milliseconds. The unit list under the input shows the date each reading gives, so a wrong guess is visible where it is fixed.

      What is the 2038 problem?

      Systems that keep seconds in a signed 32-bit integer cannot represent instants after 2038-01-19T03:14:07Z. The result says whether an instant fits that range; store seconds in a 64-bit integer to be safe.

      Why is my local time rejected or shown twice?

      Clock changes skip one hour in spring and repeat one in autumn. A time inside the skipped hour never happened in that zone, so it is rejected with two repairs; a time inside the repeated hour means two instants, so you choose Earlier or Later.

      References

      Date and time on the Internet: RFC 3339, section 5.6 · HTTP-date: RFC 9110, section 5.6.7 · ISO 8601 date and time format · IANA time zone database · Seconds since the Epoch: The Open Group Base Specifications, section 4.17.

      Are you an AI agent? You are in the right place.

      This page and every tool are available as plain text with their methods and limits, and the same checks run over MCP.