aboutsummaryrefslogtreecommitdiff
path: root/cmd/site/internal/date.go
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-12-09 10:48:40 -0500
committerGitHub <noreply@github.com>2019-12-09 10:48:40 -0500
commiteb26857c1d5973bedc91c3fc1acaf4434809bbd5 (patch)
tree926be802355da24afb3cf6ed8496a2b2d656e1a1 /cmd/site/internal/date.go
parent583cf248b3fe7ebb06d89ba32fddeee70fb14c2c (diff)
downloadxesite-eb26857c1d5973bedc91c3fc1acaf4434809bbd5.tar.xz
xesite-eb26857c1d5973bedc91c3fc1acaf4434809bbd5.zip
Within package layout (#102)
* blog: go package layout * eat my own dogfood * internal: test date * blog/go-package-layout: streamline * oops
Diffstat (limited to 'cmd/site/internal/date.go')
-rw-r--r--cmd/site/internal/date.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/site/internal/date.go b/cmd/site/internal/date.go
new file mode 100644
index 0000000..960cdc2
--- /dev/null
+++ b/cmd/site/internal/date.go
@@ -0,0 +1,10 @@
+package internal
+
+import "time"
+
+const iOS13DetriFormat = `2006 M1 2`
+
+// IOS13Detri formats a datestamp like iOS 13 does with the Lojban locale.
+func IOS13Detri(t time.Time) string {
+ return t.Format(iOS13DetriFormat)
+}