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

@@ -3,7 +3,6 @@ module time
// solaris_now returns the local time with high precision for most os:es
// this should be implemented properly with support for leap seconds.
// It uses the realtime clock to get and converts it to local time
[inline]
fn solaris_now() Time {
// get the high precision time as UTC realtime clock
// and use the nanoseconds part
@@ -14,7 +13,6 @@ fn solaris_now() Time {
return convert_ctime(loc_tm, int(ts.tv_nsec / 1000))
}
[inline]
fn solaris_utc() Time {
// get the high precision time as UTC realtime clock
// and use the nanoseconds part