A minimalist web app that shows when your next clock change is happening and how it will affect your sleep. It detects your timezone and shows a countdown to the next Daylight Saving Time transition.
Wondering how to handle the time change without disrupting your sleep? Check out nemui (repo), a sleep schedule planner that can help you gradually adjust to the new time.
- Automatic timezone detection
- Shows:
- Exact date and time of the change
- Whether you'll gain or lose an hour of sleep
- Countdown to the transition
- Current DST status
- Dark mode support
- Handles all types of time changes:
- Standard DST transitions
- Partial-hour changes
- Different DST schedules worldwide
Contributions are welcome! The app is built with vanilla JavaScript, HTML, and CSS. To run locally:
- Clone the repository:
git clone https://github.com/welpo/dst.git
- Navigate to the directory:
cd dst/app
- Start a local server:
python3 -m http.server
- Visit
http://localhost:8000
in your browser
The app consists of three main files:
index.html
: Basic structurestyles.css
: Stylesapp.js
: Time change detection and display logic
- Questions or ideas → Start a discussion
- Found a bug? → Report it
- Feature request? → Let me know
nemui is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.