A Unix timestamp represents an instant relative to a fixed epoch, usually as seconds since 1970-01-01 00:00:00 UTC. It does not by itself contain a city, daylight-saving rule, or the user's preferred display format. GoldieKit's Unix timestamp converter shows seconds, milliseconds, ISO dates, and local and UTC representations. Use it to identify an instant, then apply the correct time zone for the human decision.
Seconds or milliseconds?
Many APIs use seconds, while JavaScript commonly handles milliseconds. A 13-digit contemporary value is often milliseconds; a 10-digit value is often seconds. That is a clue, not a formal guarantee. Check the API documentation or field name. Interpreting milliseconds as seconds can produce a date far outside the expected range; interpreting seconds as milliseconds can land near January 1970.
For example, 1700000000 seconds and 1700000000000 milliseconds describe the same instant if interpreted in their respective units. Multiplying or dividing by 1000 is simple, but be careful with rounding. If a system records fractional seconds, decide whether to preserve or truncate the fraction. A whole-second display can hide a meaningful ordering difference in logs.
An instant is not a local appointment
UTC is a time standard used to identify instants consistently. A local time such as “09:00 in Berlin” needs a time zone and a date to become a specific instant, because the UTC offset changes across the year. A fixed offset like +01:00 tells you the offset at one moment but does not encode future daylight-saving rules. For recurring meetings, store or communicate the named time zone when the schedule must follow local wall time.
Suppose a team schedules a release for 09:00 Berlin time. In winter, Berlin is typically UTC+1; in summer, UTC+2. Hard-coding 08:00 UTC for every month would move the summer release to 10:00 local time. Use a time-zone-aware scheduling system and verify the converted instant around daylight-saving transitions.
| Data | Represents | Missing context |
|---|---|---|
| Unix seconds | One instant | Display time zone |
ISO time with Z |
One UTC instant | User's local display preference |
| ISO time with offset | One instant and that offset | Future regional rules |
| “09:00” alone | A wall-clock reading | Date and time zone |
Convert a value in GoldieKit
Paste a timestamp into Unix timestamp converter and explicitly choose seconds or milliseconds. Compare UTC and local output. If the value came from JSON, JSON formatter can help you inspect the field in its object, but it will not infer a time unit or zone for you. Record the unit in code and documentation, such as createdAtMs rather than an ambiguous createdAt when the API convention is not obvious.
When investigating a log incident, sort by a normalized instant rather than by formatted local strings. Two systems may display different local times for the same event. Capture the original timestamp and the source system's time-zone convention before converting. If a timestamp is missing an offset, do not quietly assume UTC; check the producing system.
Daylight-saving edge cases
When clocks move forward, some local wall times do not occur. When they move back, some occur twice. “02:30” on a transition date can be nonexistent or ambiguous in a region that changes clocks. A timestamp that already identifies an instant is unambiguous; converting it to local time is straightforward with the right zone database. The ambiguous direction is turning an unqualified local time into an instant.
If you are entering a future appointment, use a named zone and a scheduling tool that handles transitions. If you are reading an old log, preserve the original offset or UTC timestamp so later readers can reconstruct the event. Avoid using the viewer's current offset for a historical event; the region may have had a different offset on that date.
A verification checklist
Confirm the unit, the source system's convention, the exact instant, and the time zone used for display. For a deadline, state the date, time, and zone explicitly. Test one known timestamp from the source. If two displays disagree, compare their UTC values before deciding a record is wrong. Most timestamp bugs come from losing one of these pieces of context, not from arithmetic itself.
Example: an event around midnight
A timestamp near 23:30 UTC can appear on the next calendar day in Berlin and on the same day in New York. If a dashboard groups events by local date while a database query groups them by UTC date, the daily totals can disagree without either system losing events. Decide which calendar day the report is meant to represent and apply that zone consistently at grouping time. Keep the underlying UTC instant so the data can be regrouped later for another audience.
Avoid ambiguous API fields
An API field named time invites unit and zone assumptions. Prefer a documented representation such as an ISO 8601 string with an offset or an integer field whose name and documentation state seconds or milliseconds. Include examples around a day boundary and a daylight-saving transition in tests. If a user enters a date without a time, define whether it is a local calendar date or an instant; converting it to midnight UTC may shift the visible date for people elsewhere.