mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: add new public format function ddmmy()
This commit is contained in:
parent
cd5431575a
commit
b0573bd4e4
@ -227,6 +227,11 @@ pub fn (t Time) ymmdd() string {
|
||||
return '${t.year}-${t.month:02d}-${t.day:02d}'
|
||||
}
|
||||
|
||||
// 05.02.2012
|
||||
pub fn (t Time) ddmmy() string {
|
||||
return '${t.day:02d}.${t.month:02d}.${t.year}'
|
||||
}
|
||||
|
||||
// Jul 3
|
||||
pub fn (t Time) md() string {
|
||||
// jl := t.smonth()
|
||||
|
Loading…
Reference in New Issue
Block a user