summaryrefslogtreecommitdiff
path: root/desk/web/components/date.hoon
diff options
context:
space:
mode:
Diffstat (limited to 'desk/web/components/date.hoon')
-rw-r--r--desk/web/components/date.hoon18
1 files changed, 18 insertions, 0 deletions
diff --git a/desk/web/components/date.hoon b/desk/web/components/date.hoon
new file mode 100644
index 0000000..1526af0
--- /dev/null
+++ b/desk/web/components/date.hoon
@@ -0,0 +1,18 @@
+/+ sr=sortug
+|_ [date=@da link=?]
+++ $
+^- marl
+=+ [[a y] m [d h mm s f]]=(yore date)
+=/ ys %- trip (ud-to-cord:string:sr y)
+?: link
+;=
+ ;a/"{ys}":"{ys}"
+ ;a/"{ys}/{<m.m>}":"/{<m.m>}"
+ ;a/"{ys}/{<m.m>}/{<d.d>}":"/{<d.d>}"
+==
+;=
+ ;span:"{ys}"
+ ;span:"/{<m.m>}"
+ ;span:"/{<d.d>}"
+==
+-- \ No newline at end of file