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:

committed by
Alexander Medvednikov

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()
|
||||||
|
Reference in New Issue
Block a user