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

time: make parse_iso8601 support a date only format (#7277)

This commit is contained in:
zakuro
2020-12-16 20:10:02 +09:00
committed by GitHub
parent 88a8507dd8
commit 6a74058190
9 changed files with 90 additions and 59 deletions

View File

@ -25,9 +25,7 @@ fn test_is_leap_year() {
}
fn check_days_in_month(month int, year int, expected int) bool {
res := time.days_in_month(month, year) or {
return false
}
res := time.days_in_month(month, year) or { return false }
return res == expected
}