allow datetime to timestamp conversion from outside date.zig
This commit is contained in:
parent
67b24641e2
commit
fd0e80f00c
|
@ -230,7 +230,7 @@ fn endIsoState(current_state: IsoParsingState, date: *DateTime, prev_data: []con
|
|||
}
|
||||
return next_state;
|
||||
}
|
||||
fn dateTimeToTimestamp(datetime: DateTime) !i64 {
|
||||
pub fn dateTimeToTimestamp(datetime: DateTime) !i64 {
|
||||
const epoch = DateTime{
|
||||
.year = 1970,
|
||||
.month = 1,
|
||||
|
|
Loading…
Reference in New Issue
Block a user