[{"data":1,"prerenderedAt":156},["ShallowReactive",2],{"tool-content-en-timestamp":3},{"id":4,"title":5,"body":6,"description":146,"extension":147,"locale":148,"meta":149,"navigation":150,"path":151,"seo":152,"stem":153,"toolId":154,"__hash__":155},"tools\u002Ftools\u002Fen\u002Ftimestamp.md","Unix Timestamp Converter",{"type":7,"value":8,"toc":129},"minimark",[9,14,23,27,46,49,53,60,64,75,79,82,86,96,100,103,107,112,115,119,122,126],[10,11,13],"h2",{"id":12},"what-is-a-unix-timestamp","What is a Unix timestamp?",[15,16,17,18,22],"p",{},"A Unix timestamp represents elapsed time since ",[19,20,21],"code",{},"1970-01-01T00:00:00Z",", known as the Unix epoch. The timestamp itself has no time zone and describes one absolute moment worldwide.",[10,24,26],{"id":25},"seconds-and-milliseconds","Seconds and milliseconds",[15,28,29,30,33,34,37,38,41,42,45],{},"Many backend systems use timestamps in seconds, while JavaScript ",[19,31,32],{},"Date"," uses milliseconds. They usually differ by a factor of 1000. For example, ",[19,35,36],{},"1704067200"," seconds and ",[19,39,40],{},"1704067200000"," milliseconds both represent ",[19,43,44],{},"2024-01-01T00:00:00Z",".",[15,47,48],{},"This tool asks you to choose the unit explicitly instead of guessing from the number of digits, which can be unreliable for early dates and unusually large values.",[10,50,52],{"id":51},"local-time-and-utc","Local time and UTC",[15,54,55,56,59],{},"UTC is a global time standard independent of location. Local time comes from the browser device's time zone, such as ",[19,57,58],{},"America\u002FNew_York",". One timestamp can display different dates or hours in different time zones while still representing the same instant.",[10,61,63],{"id":62},"iso-8601","ISO 8601",[15,65,66,67,70,71,74],{},"ISO 8601 is a common machine-readable format, such as ",[19,68,69],{},"2024-01-01T00:00:00.000Z",". A trailing ",[19,72,73],{},"Z"," indicates UTC. APIs, logs, and databases frequently use this format to exchange dates.",[10,76,78],{"id":77},"which-zone-should-i-use-for-date-input","Which zone should I use for date input?",[15,80,81],{},"Local mode interprets the entered calendar date in the browser's current time zone. UTC mode interprets the same fields as UTC. In regions with daylight saving time, some local times may repeat or not exist because of time zone transitions.",[10,83,85],{"id":84},"zero-and-negative-timestamps","Zero and negative timestamps",[15,87,88,89,92,93,95],{},"Timestamp ",[19,90,91],{},"0"," is valid and represents the Unix epoch. Negative values represent moments before 1970 and can be converted as long as they remain within the JavaScript ",[19,94,32],{}," range.",[10,97,99],{"id":98},"privacy-and-security","Privacy and security",[15,101,102],{},"All date calculations run locally in your browser. Timestamps and dates are not uploaded, added to the URL, or stored locally.",[10,104,106],{"id":105},"frequently-asked-questions","Frequently asked questions",[108,109,111],"h3",{"id":110},"why-is-the-converted-date-several-hours-different","Why is the converted date several hours different?",[15,113,114],{},"The most common reason is mixing local time with UTC. Check the intended zone of the input and the browser time zone displayed by the tool.",[108,116,118],{"id":117},"why-are-javascript-timestamps-usually-13-digits","Why are JavaScript timestamps usually 13 digits?",[15,120,121],{},"JavaScript uses milliseconds since the Unix epoch, which commonly produces 13 digits for modern dates. Many server languages use seconds, commonly producing 10 digits. Digit count is only a convention and should not be the sole detection method.",[108,123,125],{"id":124},"do-leap-years-affect-timestamps","Do leap years affect timestamps?",[15,127,128],{},"Timestamps count continuous elapsed seconds or milliseconds. When displaying a calendar date, the browser applies Gregorian calendar rules, including leap years.",{"title":130,"searchDepth":131,"depth":131,"links":132},"",2,[133,134,135,136,137,138,139,140],{"id":12,"depth":131,"text":13},{"id":25,"depth":131,"text":26},{"id":51,"depth":131,"text":52},{"id":62,"depth":131,"text":63},{"id":77,"depth":131,"text":78},{"id":84,"depth":131,"text":85},{"id":98,"depth":131,"text":99},{"id":105,"depth":131,"text":106,"children":141},[142,144,145],{"id":110,"depth":143,"text":111},3,{"id":117,"depth":143,"text":118},{"id":124,"depth":143,"text":125},"Convert Unix timestamps in seconds or milliseconds to local time, UTC, and ISO 8601. All calculations stay in your browser.","md","en",{},true,"\u002Ftools\u002Fen\u002Ftimestamp",{"title":5,"description":146},"tools\u002Fen\u002Ftimestamp","timestamp","gkZuaJH7v1NRKk4XpmSifTIQ2rXx0D1GQKhfnfS3yoQ",1792391421380]