1
0
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:
Enrico Lefass 2019-10-06 15:24:37 +02:00 committed by Alexander Medvednikov
parent cd5431575a
commit b0573bd4e4

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