FAILURE MAP
← Case archive

FA-297 / Time representation / Member archive

Truncating a negative epoch fraction selects the next second · case 02

An instant just before the Unix epoch is assigned to second zero, or rounding moves a positive fraction into a later second.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Convert an integer count of milliseconds since the Unix epoch to the integer second s satisfying 1000*s <= milliseconds < 1000*(s+1). Do not round to the nearest second and do not pass through floating point.

Why this case matters

Pre-epoch timestamps and high-magnitude archival timestamps reveal a distinction hidden by common positive, whole-second fixtures.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
negative fractional second-2-3Failed

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 ↗