authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-03-09 12:25:26 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-03-09 12:26:20 -08:00
log913d3ff01878326955bb3b265dcb3fdb3607d232
tree01f9b55d7be283340dc6d4746b47d9baafc7444e
parentde4ebc667a64df55f6e288f54c056d5ce15d3546

DateTime: shrink struct size by making some fields smaller

14 -> 10

1 files changed, 5 insertions(+), 5 deletions(-)

time.zig+5-5
......@@ -5,11 +5,11 @@ const time = @This();
55
66pub const DateTime = struct {
77 ms: u16,
8 seconds: u16,
9 minutes: u16,
10 hours: u16,
11 days: u16,
12 months: u16,
8 seconds: u8,
9 minutes: u8,
10 hours: u8,
11 days: u8,
12 months: u8,
1313 years: u16,
1414 timezone: TimeZone,
1515