std.time.epoch: fix issue in documentation

std.time.epoch.DaySeconds.getHoursIntoDay said that hours goes from
0-11. should be 0-23.
This commit is contained in:
Samarth Hattangady 2021-12-16 19:36:20 +05:30 committed by Andrew Kelley
parent 58f669dc8c
commit 1fa5a1959d

View file

@ -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));
}