CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/timezone-test-matrix-builder

Builds a timezone, daylight saving time (DST), and leap year / leap second test matrix from wherever a codebase reads or formats dates and times. Finds time-handling code (grep for datetime / Date / Instant / time.time / timezone), sorts each spot into storage, business-logic, display, cron, or billing, picks the edge cases that matter (DST spring-forward / fall-back, ambiguous local time, leap day Feb 29, ISO 8601 / RFC 3339 round-trip, zone-database updates), and emits per-spot test stubs wired to the language's fake-clock (mock-time) library. Use when a codebase needs timezone, DST, and leap-year test coverage derived from its own date/time usage.

75

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

test-catalog.mdreferences/

Per-category test catalog

The test cases each touchpoint category should exercise. Pick the rows matching the category assigned during inventory (Step 1).

Storage tests

TestPattern
Round-trip RFC 3339parse → emit → parse → assert equal
Round-trip via JSONserialise object → deserialise → assert
Microsecond precision preserved.123456Z survives DB store/load
Zone information preserved or normalized to UTCDocument the policy

Business-logic tests

TestPattern
DST spring-forwardSchedule at 02:30 local on transition day; verify behaviour
DST fall-backSame 01:30 local appearing twice; verify ordering
Leap day Feb 29"1 year from Feb 29 2024" → Feb 28 2025 (Per ICU)
Year-end rollover"Tomorrow" on Dec 31
Month-endJan 31 + 1 month = Feb 28 / 29 (per library)
Negative durationsOperations on "5 minutes ago"
Leap second toleranceCode uses monotonic time per leap-second-reference

Cron tests

TestPattern
Daily 02:30 EST cron on spring-forwardDoesn't fire OR fires at 03:30 (per cron spec)
Daily 01:30 EST cron on fall-backFires once vs twice (per spec)
Monthly on Feb 29 (non-leap year)Fires on Feb 28 OR not at all
Weekly cron crossing DST1-hour offset for one week

Billing tests

TestPattern
Billing on month-end across leap yearFeb 28 vs Feb 29 handling
Billing window across DSTHour gain / loss in the period
Pro-ration calculationAcross DST boundary
Multi-tenant timezone varianceSame wall-clock hour ≠ same UTC

Display tests

TestPattern
Per-user TZ formattingUser in Asia/Tokyo sees 09:00 JST; user in Europe/London sees 00:00 GMT
ISO 8601 vs human-readableLocalised display ≠ wire format
24h vs 12h conventionPer user locale
Relative time ("2 hours ago")Per system locale

references

SKILL.md

tile.json