A lightweight browser app for common date/time tasks:
- Date and time difference (
datetime-localtodatetime-local) - Unix timestamp to zoned local time + UTC
- Zoned date/time to Unix seconds + milliseconds
The UI is localized in English, German, and Portuguese based on browser language.
- Runs fully in the browser (no backend required)
- Supports global time zone selection (IANA zones)
- Handles Unix input in seconds or milliseconds
- Includes responsive dark UI for desktop and mobile
- Adds SEO and social metadata for deployment as a public utility page
date.html- Main page markup, styles, and script includesdate.js- Readable source JavaScript (i18n, date math, timezone picker, conversions)date.min.js- Minified JavaScript loaded bydate.html
No build step is required.
- Open
date.htmldirectly in your browser, or - Serve the folder with a static server:
python3 -m http.server 8000Then open http://localhost:8000/date.html.
- Luxon is loaded from jsDelivr in
date.htmland is used for time zone awaredatetime-localto Unix conversion.
If Luxon fails to load, local-zone conversion still works, while explicit non-local zone conversion shows an in-app error message.
To regenerate the minified bundle from date.js, use Terser:
npx terser date.js --compress --mangle --output date.min.jsOptional check (shows output size):
ls -lh date.min.jsdate.htmlcurrently referencesdate.min.js.- If you edit
date.js, regeneratedate.min.jsbefore deploying so both stay in sync.