time: add new public format function ddmmy()
parent
cd5431575a
commit
b0573bd4e4
|
@ -227,6 +227,11 @@ pub fn (t Time) ymmdd() string {
|
||||||
return '${t.year}-${t.month:02d}-${t.day:02d}'
|
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
|
// Jul 3
|
||||||
pub fn (t Time) md() string {
|
pub fn (t Time) md() string {
|
||||||
// jl := t.smonth()
|
// jl := t.smonth()
|
||||||
|
|
Loading…
Reference in New Issue