Commit 1fa5a1959d

Samarth Hattangady <samhattangady@gmail.com>
2021-12-16 15:06:20
std.time.epoch: fix issue in documentation
std.time.epoch.DaySeconds.getHoursIntoDay said that hours goes from 0-11. should be 0-23.
1 parent 58f669d
Changed files (1)
lib
std
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));
     }