diff options
| author | Christine Dodrill <me@christine.website> | 2019-10-23 13:16:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-23 13:16:18 -0400 |
| commit | 78e50f6ce0a45515a360ebef889269a9ead8ef43 (patch) | |
| tree | 2f553dd434897e7b09c602904f7ac17e629bae21 /internal | |
| parent | 267176954fbfcab087cf269acc0155dae7a21fc8 (diff) | |
| download | xesite-78e50f6ce0a45515a360ebef889269a9ead8ef43.tar.xz xesite-78e50f6ce0a45515a360ebef889269a9ead8ef43.zip | |
cmd/site: change date format (#89)
* cmd/site: change date format
* internal: begone comma
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/date.go | 10 |
1 files changed, 10 insertions, 0 deletions
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) +} |
