| author | |
| committer | |
| log | f61bccceb4dcd8bac9a4aead7671b89751f8c15d |
| tree | dfe2d8227a49f21359fcf00a532ab08c05e0170d |
| parent | 3051fe1421fc4e01caba7ac0b8ccdf8776a93441 |
| signature |
1 files changed, 1 insertions(+), 0 deletions(-)
time.zig+1| ... | @@ -41,6 +41,7 @@ pub const DateTime = struct { | ... | @@ -41,6 +41,7 @@ pub const DateTime = struct { |
| 41 | .addMs(ms); | 41 | .addMs(ms); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | // TODO parse /etc/localtime and get the local offset (https://datatracker.ietf.org/doc/html/rfc8536) | ||
| 44 | pub fn now() DateTime { | 45 | pub fn now() DateTime { |
| 45 | return initUnixMs(@intCast(milliTimestamp())); | 46 | return initUnixMs(@intCast(milliTimestamp())); |
| 46 | } | 47 | } |