Timestamp Information
Date & Time
Components
Developer Tools
Three ways to embed or access timestamps programmatically.
JS Widget — hover tooltips on any page
Add one <script> tag
to any HTML page. The widget scans the page for Unix timestamps and shows a human-readable date tooltip on hover.
Timezone is auto-detected from the visitor's browser by default.
<script src="https://tmstmp.dev/tmstmp.js"></script>
Override timezone and/or format via data-* attributes or query params:
<!-- force a specific timezone -->
<script src="https://tmstmp.dev/tmstmp.js" data-timezone="America/New_York"></script>
<!-- custom format + timezone -->
<script src="https://tmstmp.dev/tmstmp.js"
data-format="YYYY-MM-DD HH:mm:ss"
data-timezone="Europe/Madrid"></script>
<!-- or via query params -->
<script src="https://tmstmp.dev/tmstmp.js?format=DD/MM/YYYY&timezone=Asia/Tokyo"></script>
Override at runtime or re-scan dynamically added content:
window.tmstmp.config.timezone = 'Australia/Sydney';
window.tmstmp.scan(document.getElementById('my-container'));
Text endpoint — plain text date
Returns a plain-text human-readable date. Useful for scripts, CLI tools, or any context where HTML is not wanted. Defaults to UTC when no timezone is given.
https://tmstmp.dev/txt/{timestamp}
https://tmstmp.dev/txt/{timestamp}?timezone=America/New_York
https://tmstmp.dev/txt/{timestamp}?format=YYYY-MM-DD HH:mm:ss&timezone=Asia/Tokyo
$ curl https://tmstmp.dev/txt/1708000000 Thu, Feb 15 2024 · 21:46:40 UTC $ curl "https://tmstmp.dev/txt/1708000000?timezone=America/New_York" Thu, Feb 15 2024 · 16:46:40 EST
Image endpoint — embeddable PNG
Returns a PNG image of the date. Hotlink it directly in markdown, emails, or any
<img> tag.
Defaults to UTC when no timezone is given.
https://tmstmp.dev/img/{timestamp}
https://tmstmp.dev/img/{timestamp}?timezone=Europe/Madrid
https://tmstmp.dev/img/{timestamp}?format=DD/MM/YYYY&timezone=Asia/Tokyo
<img src="https://tmstmp.dev/img/1708000000?timezone=Europe/Madrid" alt="timestamp"> 
More parameters coming soon: color, bg, size.
Parameters reference
timezone=
widget • /txt • /img
Any IANA timezone name (DST-aware). Invalid values fall back silently to UTC. The widget auto-detects the browser timezone when omitted; the endpoints default to UTC.
America/New_York Europe/Madrid Asia/Tokyo Australia/Sydney UTC
format=
widget • /txt • /img
Custom date/time pattern. Tokens are replaced longest-first so YYYY
always wins over YY, etc.
Values reflect the specified timezone= (UTC by default).
| Token | Padded | Token | No pad |
|---|---|---|---|
| YYYY | 2026 | YY | 26 |
| MM | 02 | M | 2 |
| DD | 07 | D | 7 |
| HH | 09 | H / h | 9 |
| mm | 05 | m | 5 |
| ss | 03 | s | 3 |