mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
time: add .no_delimiter format option
This commit is contained in:
parent
910a8934cb
commit
b5bf0eeac5
2 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,9 @@ mut res := match fmt_date {
|
|||
.space{
|
||||
' '
|
||||
}
|
||||
.no_delimiter{
|
||||
''
|
||||
}
|
||||
})
|
||||
return res
|
||||
}
|
||||
|
|
|
@ -73,6 +73,7 @@ pub enum FormatDelimiter {
|
|||
hyphen
|
||||
slash
|
||||
space
|
||||
no_delimiter
|
||||
}
|
||||
|
||||
// TODO: C.time_t. works in v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue