pisan-labs

Leap Second Lab — Data skill for Claude Code

Data community

A leap-second lab: TAI, UTC, GPS, Unix and UT1 on one timeline, a leap second replayed through stepping, smeared and monotonic clocks, what JS, Python and Postgres do with 23:59:60, and fix-the-bug ex.

How to install Leap Second Lab

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pisan-labs/leap-second-lab and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Leap Second Lab does

A leap-second lab: TAI, UTC, GPS, Unix and UT1 on one timeline, a leap second replayed through stepping, smeared and monotonic clocks, what JS, Python and Postgres do with 23:59:60, and fix-the-bug exercises. Built with Claude Code.

Alternatives in Data

  • 06 Ink React Terminal UI — Prompt 06: Verify and Fix the Ink/React Terminal UI Pipeline 2.3k ★
  • Growth Lab — An end-to-end growth tool that understands the product, fetch the data it needs, researches the market, execut 2k ★
  • Bug Bounty Master Workflow — Full pipeline: Recon -> Learn -> Hunt -> Validate -> Report 924 ★

README

23:59:60

A timekeeping lab for systems and databases courses. It puts TAI, UTC, GPS, Unix time and UT1 on one zoomable timeline, replays a leap second through four kinds of clocks and a two-host event log, shows what JS `Date`, Temporal, Python and Postgres actually do with leap-second inputs, and ends with four fix-the-bug exercises with hidden tests.

Live: [leap-second-lab.hintwise.org](https://leap-second-lab.hintwise.org)

![On the Step vs smear tab, dragging the instant slider into 2016-12-31T23:59:60 shows the POSIX clock reading 23:59:59 again while the smeared clocks sit half a second off, then the chart zooms out to the 1,000-second UTC-SLS ramp](demo.gif)

Built from idea 2026-10-17 n2 in [`pisanuw/daily-project-ideas`](https://github.com/pisanuw/daily-project-ideas), which was prompted by the decision to stop inserting leap seconds. The idea's optional Claude API explainer is replaced by a hand-written note for each recorded result. Everything runs in the browser; there is no backend.

![23:59:60: the step vs smear view, with each clock's distance from UTC around 2016-12-31T23:59:60](desktop.png)

The four tabs

**Timeline.** TAI − UTC (27 steps, 10 s → 37 s), GPS − UTC (from 1980), UT1 − UTC and Unix − UTC, as offsets from UTC in seconds, 1972 to the year 6000. Scroll or use +/− to zoom, drag to pan. Inputs set the cutover date (when leap seconds stop), the excess length of day, how fast that excess grows, and an optional hypothetical negative leap second. Readouts say when |UT1 − UTC| would reach a minute and an hour, and how many leap seconds the old rule would have needed by 2100. A converter turns any UTC label, including `23:59:60.5`, into TAI, GPS week/time-of-week, the value a stepping kernel reports, and UT1 − UTC. It rejects labels that never existed, such as `2017-06-30T23:59:60`.

**Step vs smear.** Pick the 2016-12-31 inserted second or a hypothetical removed second at the end of 2029-12-31. A chart shows how far each clock is from UTC