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

time: add .no_delimiter format option

This commit is contained in:
pancake
2020-05-08 20:23:26 +02:00
committed by GitHub
parent 910a8934cb
commit b5bf0eeac5
2 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,9 @@ mut res := match fmt_date {
.space{ .space{
' ' ' '
} }
.no_delimiter{
''
}
}) })
return res return res
} }

View File

@ -73,6 +73,7 @@ pub enum FormatDelimiter {
hyphen hyphen
slash slash
space space
no_delimiter
} }
// TODO: C.time_t. works in v2 // TODO: C.time_t. works in v2