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

time: fix unix_time

This commit is contained in:
yuyi 2020-04-04 18:10:56 +08:00 committed by GitHub
parent 4bade9bcea
commit 8ba6e45d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ pub fn new_time(t Time) Time {
} }
// unix_time returns Unix time. // unix_time returns Unix time.
pub fn (t &Time) unix_time() int { pub fn (t Time) unix_time() int {
if t.unix != 0 { if t.unix != 0 {
return t.unix return t.unix
} }