1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: fix iso8601 parser and utc time

This commit is contained in:
Tomas Hellström
2020-06-10 11:14:55 +02:00
committed by GitHub
parent 8f9f426479
commit 2dc547a45c
10 changed files with 255 additions and 88 deletions

View File

@ -1,6 +1,7 @@
module time
// eq returns true if provided time is equal to time
[inline]
pub fn (t1 Time) eq(t2 Time) bool {
if t1.unix == t2.unix && t1.microsecond == t2.microsecond {
return true