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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

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

View File

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