[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"tool-guide:timestamp-converter":3},{"overview":4,"whatIs":5,"useCases":6,"steps":12,"commonMistakes":18,"relatedStandards":24,"example":37,"limitations":41,"faq":44},"Unix Timestamp Converter translates Unix seconds or milliseconds and ISO date strings with explicit unit selection, UTC output, and chosen timezone context.","A Unix timestamp (also called epoch time or POSIX time) counts the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC — a moment known as the Unix epoch. This single integer representation of time is the standard in most programming languages, databases, APIs, and log systems because it is timezone-independent, compact, and trivially comparable. JavaScript uses millisecond timestamps (13 digits), while most backend languages and databases use second timestamps (10 digits). ISO 8601 date strings (like 2024-01-01T00:00:00Z) are the human-readable counterpart, including timezone information. Converting between these formats is a daily task: reading timestamps in database rows, parsing API responses, debugging log entries, and setting expiration times in JWT tokens or cache headers. This tool converts in both directions (epoch to date, date to epoch) with explicit unit selection (seconds vs milliseconds) and displays the result in both UTC and a timezone you choose from the IANA timezone database.",[7,8,9,10,11],"Reading API timestamps — convert a Unix epoch from an API response to a human-readable date to verify expiration times, creation dates, or event timestamps.","Debugging log entries — convert timestamps in application logs to your local timezone to correlate events with user reports.","Setting JWT expiration — calculate the epoch value for \"30 minutes from now\" or \"end of day UTC\" to set the exp claim in a JWT token.","Database queries — convert between epoch integers and date strings when writing WHERE clauses or reading query results.","Comparing timestamps across systems — normalize timestamps from different sources (seconds, milliseconds, ISO strings) to a common format for comparison.",[13,14,15,16,17],"Enter a Unix timestamp (seconds or milliseconds) or an ISO 8601 date string.","Select the input unit: seconds (10 digits), milliseconds (13 digits), or auto-detect.","Choose the display timezone from the IANA timezone database.","Review the converted date in both UTC and the selected timezone.","Copy the timestamp or date string in the format you need.",[19,20,21,22,23],"Confusing seconds and milliseconds — JavaScript Date.now() returns milliseconds, but most APIs and databases use seconds. A 10-digit number is seconds (valid through year 2286); 13 digits is milliseconds.","Ignoring timezone when converting dates — \"2024-01-15 09:00\" could be in any timezone. Without explicit timezone information, the conversion is ambiguous.","Year 2038 problem — 32-bit signed integers overflow on January 19, 2038. Modern systems use 64-bit timestamps, but legacy systems may still be affected.","Daylight saving time gaps — some local times do not exist (spring forward) or occur twice (fall back). The converter shows UTC to avoid ambiguity; verify DST handling in your application.","Negative timestamps — dates before the Unix epoch (January 1, 1970) have negative timestamps. Not all systems handle negative epoch values correctly.",[25,28,31,34],{"title":26,"url":27},"ISO 8601 — Date and Time Formats","https:\u002F\u002Fwww.iso.org\u002Fiso-8601-date-and-time-format.html",{"title":29,"url":30},"RFC 3339 — Date and Time on the Internet","https:\u002F\u002Fdatatracker.ietf.org\u002Fdoc\u002Fhtml\u002Frfc3339",{"title":32,"url":33},"IANA Time Zone Database","https:\u002F\u002Fwww.iana.org\u002Ftime-zones",{"title":35,"url":36},"MDN — Date.now() reference","https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript\u002FReference\u002FGlobal_Objects\u002FDate\u002Fnow",{"label":38,"input":39,"output":40},"Convert a Unix second value","1704067200 seconds","2024-01-01T00:00:00.000Z",[42,43],"Ambiguous date strings are rejected rather than guessed.","Timezone rules can change; confirm future operational schedules in the target system.",[45,48,51,54],{"question":46,"answer":47},"What is a Unix timestamp?","A Unix timestamp counts the number of seconds (or milliseconds) since January 1, 1970 00:00:00 UTC. It is the standard way to represent time in APIs, databases, and log files.",{"question":49,"answer":50},"How do I tell if a value is seconds or milliseconds?","A 10-digit number is typically seconds (covers dates through 2286). A 13-digit number is typically milliseconds. This tool lets you choose the unit explicitly.",{"question":52,"answer":53},"Does this tool handle timezones?","Yes. The converter shows both the UTC time and a localized representation in a timezone you select from the IANA timezone database.",{"question":55,"answer":56},"What is the Year 2038 problem?","On January 19, 2038, a 32-bit signed Unix timestamp overflows. Systems using 32-bit timestamps will wrap to a negative number, causing date errors. Modern systems use 64-bit timestamps to avoid this.",1788868140789]