From 78e50f6ce0a45515a360ebef889269a9ead8ef43 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 23 Oct 2019 13:16:18 -0400 Subject: cmd/site: change date format (#89) * cmd/site: change date format * internal: begone comma --- internal/date.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 internal/date.go (limited to 'internal') diff --git a/internal/date.go b/internal/date.go new file mode 100644 index 0000000..c3a67b9 --- /dev/null +++ b/internal/date.go @@ -0,0 +1,10 @@ +package internal + +import "time" + +const iOS13DetriFormat = `Y2006 M01 2 Mon` + +// IOS13Detri formats a datestamp like iOS 13 does with the Lojban locale. +func IOS13Detri(t time.Time) string { + return t.Format(iOS13DetriFormat) +} -- cgit v1.2.3