Convert a timestamp only after choosing its unit
Identify the time question before entering a value
This tool converts whole-number Unix values to UTC timestamps, converts supported UTC timestamps to Unix values, adds whole calendar days and calculates the difference between two calendar dates. Choose the operation and unit explicitly. A number does not announce whether its producer meant seconds or milliseconds, and this page does not guess from the number of digits. The result is a bounded time calculation, not an appointment scheduler, a time-zone database or evidence about when an external event actually occurred. Preserve the original value and the producer's stated unit when investigating a log entry.
A practical use is translating a synthetic log timestamp into a readable UTC instant before comparing two systems. Confirm the field contract rather than trying seconds and milliseconds until one result looks familiar. Both choices can be syntactically acceptable while referring to entirely different instants. Keep the chosen unit beside the fixture in your notes. If the system records local clock text, determine its zone and offset through the appropriate source; this page does not infer them from a date string, a machine's current location or a user's language.
The calendar operations answer another question. Add days takes a calendar date and a signed whole-day amount; difference reports the second date minus the first. Those operations use this tool's UTC calendar model rather than a regional work schedule. Weekends, public holidays and business-day policies are not inferred. A successful calculation therefore is not advice about a contractual deadline or a guarantee that a calendar application will schedule something identically. Use the consumer's actual date rules for those tasks and keep this arithmetic step as a separately documented result.
Follow the epoch and a leap-day example
Checked synthetic input
Operation: Unix timestamp to UTC
Value: 0
Unit: secondsExact observed output
UTC timestamp: 1970-01-01T00:00:00.000Z
Unix seconds (exact decimal): 0
Unix milliseconds: 0Choose Unix timestamp to UTC, enter zero and select seconds. The checked output is the UTC epoch, 1970-01-01T00:00:00.000Z, with exact Unix seconds zero and milliseconds zero. This makes a useful baseline fixture because its interpretation does not depend on the current date. The checked code block records the operation settings as well as the result. It is a description of the controls to fill, not a second input format to paste into the numeric field. The diagram emphasizes that the unit is part of the value's meaning.
Negative inputs are supported within the stated range. In a separate checked case, minus one millisecond refers to 1969-12-31T23:59:59.999Z and exact decimal seconds minus 0.001. It does not mean minus one second. The exact-seconds line can therefore contain a decimal even though the input field requires a whole number in the selected unit. That distinction helps diagnose an apparent off-by-one or pre-epoch discrepancy without rounding the evidence away. Keep the original signed integer and unit rather than replacing them with a less precise display string.
For calendar arithmetic, adding one day to 2024-02-28 yields 2024-02-29 in the checked example. The difference from 2024-02-28 to 2024-03-01 is two days. These are concrete leap-year fixtures for this calendar model, not a simulation of local daylight-saving transitions. Reverse the order of the dates when you need the opposite sign and record that choice. The page does not reinterpret “difference” as an unsigned duration or a count of business days, so state which interpretation your downstream task actually requires.
Respect exactness, range and supported syntax
The supported model is UTC only, using the proleptic Gregorian calendar for years 0001 through 9999. Local time zones, daylight-saving rules and leap seconds are outside it. Unix input must be a signed whole decimal integer; fractions, exponent notation and leading-zero variants are not silently normalized into another value. Use milliseconds when subsecond precision matters. Converting a UTC timestamp with a nonzero fractional second to whole-second output is rejected rather than silently rounded or truncated. That makes the unit choice a meaningful precision decision, not a cosmetic display preference.
The timestamp-to-Unix input uses the tool's supported explicit UTC spelling, while the date operations require the specified year-month-day form. Invalid real calendar dates are rejected instead of allowed to roll into another month. A correctly shaped string can still represent an impossible date, which is why checking punctuation alone is insufficient. Keep the exact rejected specimen when reporting a problem. Removing a fractional part, changing a zone indicator or replacing a date until the form accepts it creates a different input and must not be presented as a lossless repair.
The interface has bounded fields and the processor applies its own range checks. A date outside the supported years is not a promise that every other time system rejects it, and a result inside the range is not proof of historical calendar usage in every region. This tool does not model historical jurisdiction changes or leap-second tables. Do not use its result as a substitute for domain-specific records when legal, scientific or operational requirements depend on those details. The useful scope is explicit, reproducible UTC and calendar arithmetic under the documented rules.
Keep a time-conversion record that another person can reproduce
For an API or log example, record the raw integer, chosen unit, operation and exact output. A screenshot showing only a readable date omits the unit decision that often explains a mismatch. Keep a zero fixture and a negative subsecond fixture when those boundaries matter to the application. Copy and Download transfer the generated text, not proof that a log producer used the same clock, unit or event definition. Compare those outside facts using the appropriate system documentation rather than deriving them from a successful local conversion.
For a date-calculation check, record both endpoints and the order of subtraction. Include a leap-day boundary when relevant, and keep business-day or regional-time policies as separate inputs to another appropriate tool. A passing result here does not create a reminder, change a calendar entry or authorize a deployment at that instant. If the task is scheduling rather than arithmetic, verify the real scheduling system's time zone and behavior. That separation prevents an accurate UTC calculation from being used to support a different, untested operational conclusion.
When a value fails, preserve the message and reduce the specimen deliberately. A malformed integer, unsupported offset, impossible date and out-of-range year are different failure classes. Change one property at a time and keep the corrected result alongside the original observation. The accessible illustration and exact example support that comparison without relying on a color cue or a relative date such as today. The useful endpoint is a precise result with its unit and calendar assumptions attached, while source-clock reliability, regional scheduling, policy and publication remain separate responsibilities.
Supporting reference: Date/UTC context; local supported range and integer rules described above.