-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunix-timestamp-converter.html
More file actions
157 lines (151 loc) · 6.58 KB
/
unix-timestamp-converter.html
File metadata and controls
157 lines (151 loc) · 6.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Unix Timestamp Converter - DateKit</title>
<meta name="description" content="Convert Unix timestamps to human-readable dates and convert date-time inputs back to Unix seconds or milliseconds." />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://devtoolbox.dedyn.io/datekit/unix-timestamp-converter.html" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="DateKit" />
<meta property="og:locale" content="en_US" />
<meta property="og:title" content="Unix Timestamp Converter - DateKit" />
<meta property="og:description" content="Convert Unix seconds or milliseconds to UTC/local date and back." />
<meta property="og:url" content="https://devtoolbox.dedyn.io/datekit/unix-timestamp-converter.html" />
<meta property="og:image" content="https://devtoolbox.dedyn.io/og/default.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Unix Timestamp Converter - DateKit" />
<meta name="twitter:description" content="Convert Unix seconds or milliseconds to UTC/local date and back." />
<meta name="twitter:image" content="https://devtoolbox.dedyn.io/og/default.png" />
<meta name="theme-color" content="#0f172a" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div class="bg-orb bg-orb-a"></div>
<div class="bg-orb bg-orb-b"></div>
<main class="page">
<header class="hero">
<p class="kicker">DateKit</p>
<h1>Unix Timestamp Converter</h1>
<p class="subtitle">Convert date-time values to Unix and decode Unix seconds or milliseconds into local, UTC, and ISO output.</p>
<nav class="tool-links" aria-label="DateKit calculators">
<a class="pill-link" href="./">All Date Tools</a>
<a class="pill-link" href="./days-between-dates.html">Days Between Dates</a>
<a class="pill-link" href="./add-subtract-days.html">Add Or Subtract Days</a>
</nav>
</header>
<section class="grid single-grid">
<article class="card" aria-labelledby="unix-title">
<h2 id="unix-title">Unix Timestamp Converter</h2>
<label>
Date & time
<input id="unix-date" type="datetime-local" />
</label>
<button id="unix-from-date" type="button">To Unix</button>
<label>
Unix (seconds or milliseconds)
<input id="unix-input" type="text" inputmode="numeric" placeholder="1700000000" />
</label>
<button id="unix-to-date" type="button">To Date</button>
<div id="unix-result" class="result" aria-live="polite"></div>
</article>
</section>
<section class="context" aria-labelledby="unix-notes-title">
<h2 id="unix-notes-title">Timestamp Notes</h2>
<p>The converter auto-detects unit by magnitude: typical 10-digit values are treated as seconds, larger values as milliseconds.</p>
<p>Returned values include local time, UTC text, and ISO-8601 so you can copy directly into logs, APIs, and incident timelines.</p>
<p>If results look shifted, verify your source timestamp timezone assumptions before comparing system events.</p>
<p>Need to compute elapsed time between incidents? Use <a href="./days-between-dates.html">Days Between Dates</a> after converting raw timestamps.</p>
</section>
<section class="faq" aria-labelledby="unix-faq-title">
<h2 id="unix-faq-title">FAQ</h2>
<details>
<summary>How does unit detection work?</summary>
<p>DateKit treats typical 10-digit values as Unix seconds and larger values as Unix milliseconds.</p>
</details>
<details>
<summary>Does this use my timezone?</summary>
<p>Yes. Output includes local browser time plus UTC/ISO values so you can compare across systems.</p>
</details>
<details>
<summary>Can I paste timestamps from logs directly?</summary>
<p>Yes. Paste numeric timestamps from logs, alerts, or API payloads to decode them instantly.</p>
</details>
</section>
<footer class="footer">
<a href="/" aria-label="Back to DevToolbox home">Back to DevToolbox</a>
<button id="copy-link" type="button">Copy URL</button>
<span id="copy-status" class="copy-status" aria-live="polite"></span>
</footer>
</main>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Unix Timestamp Converter",
"url": "https://devtoolbox.dedyn.io/datekit/unix-timestamp-converter.html",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "Web",
"description": "Convert Unix seconds or milliseconds to human-readable date values and back.",
"isAccessibleForFree": true
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "DateKit",
"item": "https://devtoolbox.dedyn.io/datekit/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Unix Timestamp Converter",
"item": "https://devtoolbox.dedyn.io/datekit/unix-timestamp-converter.html"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How does unit detection work?",
"acceptedAnswer": {
"@type": "Answer",
"text": "DateKit treats most 10-digit values as Unix seconds and larger values as Unix milliseconds."
}
},
{
"@type": "Question",
"name": "Does this use my timezone?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Output includes your browser-local time and UTC/ISO variants."
}
},
{
"@type": "Question",
"name": "Can I paste timestamps from logs directly?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Paste numeric timestamps from logs, alerts, or API payloads and DateKit will decode them."
}
}
]
}
</script>
<script src="./app.js" defer></script>
</body>
</html>