allow datetime to timestamp conversion from outside date.zig

This commit is contained in:
Emil Lerch 2023-09-08 21:40:03 -07:00
parent 67b24641e2
commit fd0e80f00c
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -230,7 +230,7 @@ fn endIsoState(current_state: IsoParsingState, date: *DateTime, prev_data: []con
} }
return next_state; return next_state;
} }
fn dateTimeToTimestamp(datetime: DateTime) !i64 { pub fn dateTimeToTimestamp(datetime: DateTime) !i64 {
const epoch = DateTime{ const epoch = DateTime{
.year = 1970, .year = 1970,
.month = 1, .month = 1,