| ... | ... | @@ -426,9 +426,9 @@ pub const DateTime = struct { |
| 426 | 426 | X, // unix |
| 427 | 427 | }; |
| 428 | 428 | |
| 429 | | pub fn since(self: DateTime, other_in_the_past: DateTime) Duration { |
| 429 | pub fn since(self: DateTime, other: DateTime) Duration { |
| 430 | 430 | return Duration{ |
| 431 | | .ms = self.toUnixMilli() - other_in_the_past.toUnixMilli(), |
| 431 | .ms = @as(i64, @intCast(self.toUnixMilli())) - @as(i64, @intCast(other.toUnixMilli())), |
| 432 | 432 | }; |
| 433 | 433 | } |
| 434 | 434 | |
| ... | ... | @@ -548,7 +548,7 @@ fn toTuple(array: anytype) @Tuple(&@as([array.len]type, @splat(std.meta.Child(@T |
| 548 | 548 | } |
| 549 | 549 | |
| 550 | 550 | pub const Duration = struct { |
| 551 | | ms: u64, |
| 551 | ms: i64, |
| 552 | 552 | }; |
| 553 | 553 | |
| 554 | 554 | // Divisions of a nanosecond. |