Skip to main content

TZ_OFFSET_NEGATIVE_UTC

Constant TZ_OFFSET_NEGATIVE_UTC 

Source
pub const TZ_OFFSET_NEGATIVE_UTC: i32 = i32::MIN /* -2_147_483_648i32 */;
Expand description

Sentinel stored in State::authored_tz_offset / State::committer_tz_offset for Git’s -0000 timezone token (“local zone unknown”). A seconds-east offset cannot distinguish -0000 from +0000, yet the sign is part of the commit bytes and therefore its object id. i32::MIN is far outside any real offset (Git’s ±HHMM spans at most ±99h59m), so it never collides with one.