time: add new public format function ddmmy()

pull/2250/head
Enrico Lefass 2019-10-06 15:24:37 +02:00 committed by Alexander Medvednikov
parent cd5431575a
commit b0573bd4e4
1 changed files with 5 additions and 0 deletions

View File

@ -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()