From b0573bd4e4e47125416439ff0be4b38597ae01f4 Mon Sep 17 00:00:00 2001 From: Enrico Lefass Date: Sun, 6 Oct 2019 15:24:37 +0200 Subject: [PATCH] time: add new public format function ddmmy() --- vlib/time/time.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vlib/time/time.v b/vlib/time/time.v index 06fcb93f1c..5e42dc8bd8 100644 --- a/vlib/time/time.v +++ b/vlib/time/time.v @@ -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()