Declaration
Span :: struct {
years: s32; months: s32; weeks: s32; days: s32; hours: s64; minutes: s64; seconds: s64; milliseconds: s64; microseconds: s64; nanoseconds: s64;}Separate calendar and clock units, all zero or sharing one sign. Raw field assignment does not validate: use span_check before passing caller-built values to arithmetic.
span, error := span_check(.{ months = 1, days = 2 });
assert(error.kind == .NONE && span.months == 1 && span.days == 2);