A small clock to show and do math with date-times and durations
https://ontime.lol
- TypeScript 99.4%
- HTML 0.3%
- CSS 0.3%
| public | Initial commit | |
| src | Fix "Time since Unix epoch" example | |
| .editorconfig | Add EditorConfig | |
| .gitignore | Initial commit | |
| brioche.lock |
Add basic project.bri for development
|
|
| index.html | Add dark mode support | |
| LICENSE.md | Add MIT license | |
| package-lock.json | Parse and evaluate expressions | |
| package.json | Parse and evaluate expressions | |
| project.bri |
Add bundle and bundleTar exports to Brioche project
|
|
| README.md | Add README | |
| tsconfig.app.json | Adjust TSConfig settings | |
| tsconfig.json | Initial commit | |
| tsconfig.node.json | Initial commit | |
| vite.config.ts | Add Tailwind | |
ontime.lol
A small web app (https://ontime.lol) to show the current time in different timezones, and for doing date-time math. Heavily based around the JavaScript Temporal API.
How to use it
The main site is hosted at https://ontime.lol. It'll show you the current time in your system's timezone and in UTC (or you can customize the list of timezones, too).
There's also an input field, which lets you write a bunch of different expressions for parsing timezones or doing timezone math. A few quick examples:
- Show an RFC-9957 timestamp in your timezone(s):
1970年01月01日T00:00:00Z[UTC] - Show how much time's elapsed since the Unix epoch:
now-epoch - Show how much time has passed since 2020 (in UTC):
now-2020年01月01日[UTC] - Start a stopwatch:
now-$now
(Click the "About" button for a full breakdown of the expression language)
Development
This was my first foray into SolidJS. Also set up with a rudimentary Brioche-based dev environment, here's how you can give it a spin:
brioche run -- npm install # Install NPM packages
brioche run -- npm run dev # Run dev server