mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
time: fix unix_time
This commit is contained in:
parent
4bade9bcea
commit
8ba6e45d83
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue