diff options
author | polwex <polwex@sortug.com> | 2025-06-27 22:53:52 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-06-27 22:53:52 +0700 |
commit | 328ebe85135912678bdacd3381126ffd66ef2761 (patch) | |
tree | 365962bf45302f2a440f766a4f3c9e0a962dbe47 /desk/web/components/date.hoon |
init
Diffstat (limited to 'desk/web/components/date.hoon')
-rw-r--r-- | desk/web/components/date.hoon | 18 |
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 |