FA-313 / Time representation / Member archive
Duration formatting wraps elapsed hours at midnight · case 03
A multi-day duration loses its day component, and a negative duration looks like a positive time of day.
Case contract
Format an integer microsecond duration as optional '-' followed by H:MM:SS.ffffff. Hours are unbounded, minutes and seconds are 00 through 59, and zero has no negative sign.
Why this case matters
Elapsed durations are not times of day. Reusing clock formatting can conceal long outages or reverse the apparent sign of a measurement.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| multi-day positive duration | "3:02:01.000003" | "75:02:01.000003" | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗