Skip to content

feat(clock): add live Digital Clock tool - #377

Merged
slaveofcode merged 1 commit into
developfrom
feat/clock-tool
Sep 9, 2026
Merged

feat(clock): add live Digital Clock tool#377
slaveofcode merged 1 commit into
developfrom
feat/clock-tool

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

What

A new Digital Clock tool (/tools/clock, Calculators) — the current time ticking live in real time via requestAnimationFrame:

  • Big HH:MM:SS with animated milliseconds and microseconds
  • Configurable IANA time zone (defaults to the user's; one-tap My zone)
  • 12/24-hour toggle, localized date + UTC offset
  • Copyable Unix epoch (ms) and ISO string
  • Mirrors HH:MM:SS in the browser tab title

Honesty note

True microsecond wall-clock time isn't available in browsers — Date.now() is ms-resolution and performance.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

  • Pure, unit-tested clock.lib (8 cases: readout, offset canonicalisation, zone list).
  • Happy-path E2E e2e/tools/clock.spec.ts (live tick → tab title, timezone switch, 12h AM/PM) + render smoke.
  • EN + ID SEO added; both /tools/clock/ and /id/tools/clock/ build.

Unit (2215) + lint (0 errors) + build green.

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.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
goodwebtools b67c2f2 Sep 09 2026, 05:19 AM

@slaveofcode
slaveofcode merged commit d797a3f into develop Sep 9, 2026
3 of 4 checks passed
@slaveofcode
slaveofcode deleted the feat/clock-tool branch September 9, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant