From 1fa5a1959ddfdea98a1bd809e953daf42deb53f9 Mon Sep 17 00:00:00 2001 From: Samarth Hattangady Date: Thu, 16 Dec 2021 19:36:20 +0530 Subject: [PATCH] std.time.epoch: fix issue in documentation std.time.epoch.DaySeconds.getHoursIntoDay said that hours goes from 0-11. should be 0-23. --- lib/std/time/epoch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/time/epoch.zig b/lib/std/time/epoch.zig index c73b57cf2f..0a9c18656f 100644 --- a/lib/std/time/epoch.zig +++ b/lib/std/time/epoch.zig @@ -154,7 +154,7 @@ pub const EpochDay = struct { pub const DaySeconds = struct { secs: u17, // max is 24*60*60 = 86400 - /// the number of hours past the start of the day (0 to 11) + /// the number of hours past the start of the day (0 to 23) pub fn getHoursIntoDay(self: DaySeconds) u5 { return @intCast(u5, @divTrunc(self.secs, 3600)); }