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

time: gmt offset; macos syscalls

This commit is contained in:
Alexander Medvednikov
2019-12-31 19:53:15 +01:00
parent 3c17851200
commit 87cff0386c
9 changed files with 63 additions and 33 deletions

View File

@@ -22,14 +22,12 @@ fn test_is_leap_year() {
}
fn test_now_format() {
/*
t := time.now()
u:=t.uni
u:=t.unix
println(u)
println(t.format())
println(time.unix(u).format())
assert t.format() == time.unix(u).format()
*/
}
fn check_days_in_month(month, year, expected int) bool {
@@ -99,18 +97,6 @@ fn test_unix() {
assert t6.second == 29
}
fn test_unix2() {
/*
println(t.year)
assert t.year == 2019
assert t.month == 12
assert t.day == 31
assert t.hour == 8
assert t.minute == 9
assert t.second == 53
*/
}
fn test_format_ss() {
assert '11.07.1980 21:23:42' == time_to_test.get_fmt_str(.dot, .hhmmss24, .ddmmyyyy)
}