| author | |
| committer | |
| log | 1fa5a1959ddfdea98a1bd809e953daf42deb53f9 |
| tree | 6413ed68c31cd7e8a55a33c2464130beee8f45e3 |
| parent | 58f669dc8c4fa9f78d73d014e805a506009f3d30 |
std.time.epoch.DaySeconds.getHoursIntoDay said that hours goes from
0-11. should be 0-23.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/time/epoch.zig+1-1| ... | ... | @@ -154,7 +154,7 @@ pub const EpochDay = struct { |
| 154 | 154 | pub const DaySeconds = struct { |
| 155 | 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 | 158 | pub fn getHoursIntoDay(self: DaySeconds) u5 { |
| 159 | 159 | return @intCast(u5, @divTrunc(self.secs, 3600)); |
| 160 | 160 | } |