| ... | @@ -154,7 +154,7 @@ pub const EpochDay = struct { | ... | @@ -154,7 +154,7 @@ pub const EpochDay = struct { |
| 154 | pub const DaySeconds = struct { | 154 | pub const DaySeconds = struct { |
| 155 | secs: u17, // max is 24*60*60 = 86400 | 155 | secs: u17, // max is 24*60*60 = 86400 |
| 156 | | 156 | |
| 157 | /// the number of hours past the start of the day (0 to 11) | 157 | /// the number of hours past the start of the day (0 to 23) |
| 158 | pub fn getHoursIntoDay(self: DaySeconds) u5 { | 158 | pub fn getHoursIntoDay(self: DaySeconds) u5 { |
| 159 | return @intCast(u5, @divTrunc(self.secs, 3600)); | 159 | return @intCast(u5, @divTrunc(self.secs, 3600)); |
| 160 | } | 160 | } |