Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 306 Bytes
package plugin
import (
"html/template"
"time"
)
// PrettyTime returns a template.FuncMap
// * PRETTYTIME outputs a nice time format
func PrettyTime() template.FuncMap {
f := make(template.FuncMap)
f["PRETTYTIME"] = func(t time.Time) string {
return t.Format("3:04 PM 01/02/2006")
}
return f
}