feat(clock): add live Digital Clock tool - #377
Merged
Merged
Conversation
A real-time digital clock that ticks via requestAnimationFrame, showing HH:MM:SS plus animated milliseconds and microseconds, in any IANA time zone (defaults to the user's, with a one-tap 'My zone'). 12/24-hour toggle, localized date + UTC offset, and copyable Unix epoch (ms) / ISO string. Also mirrors HH:MM:SS in the tab title. Pure, unit-tested clock.lib (readout, offset canonicalisation, zone list); thin island. Microsecond precision is honestly labelled as browser-clamped best-effort. EN + ID SEO added; happy-path E2E included.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
goodwebtools | b67c2f2 | Sep 09 2026, 05:19 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new Digital Clock tool (
/tools/clock, Calculators) — the current time ticking live in real time via requestAnimationFrame:HH:MM:SSwith animated milliseconds and microsecondsHH:MM:SSin the browser tab titleHonesty note
True microsecond wall-clock time isn't available in browsers —
Date.now()is ms-resolution andperformance.now()is clamped as a Spectre mitigation. The µs field is a best-effort read of the high-resolution timer, and the UI + FAQ say so plainly.Tests
clock.lib(8 cases: readout, offset canonicalisation, zone list).e2e/tools/clock.spec.ts(live tick → tab title, timezone switch, 12h AM/PM) + render smoke./tools/clock/and/id/tools/clock/build.Unit (2215) + lint (0 errors) + build green.