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:
parent
4bade9bcea
commit
8ba6e45d83
@ -106,7 +106,7 @@ pub fn new_time(t Time) Time {
|
||||
}
|
||||
|
||||
// unix_time returns Unix time.
|
||||
pub fn (t &Time) unix_time() int {
|
||||
pub fn (t Time) unix_time() int {
|
||||
if t.unix != 0 {
|
||||
return t.unix
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user