Add clock time

This commit is contained in:
Andrea Fazzi 2022-04-26 21:58:12 +02:00
parent b16aa5b4f2
commit 0a06eb57c4
2 changed files with 5 additions and 1 deletions

View file

@ -12,7 +12,8 @@ geometry:
...
# Buongiorno Aldo!
Oggi è il {{day}}.{{month}}.{{year}}.
Sono le ore **{{kitchen}}** del **{{day}}.{{month}}.{{year}}**.
# Situazione meteo

View file

@ -15,6 +15,9 @@ import (
)
var funcmap = template.FuncMap{
"kitchen": func() string {
return time.Now().Format(time.Kitchen)
},
"day": func() int {
_, _, day := time.Now().Date()
return day