Files
marqdo/tests/lib/datetime-smoke.mq.md
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

490 B

markup, title, import
markup title import
occlusion lib/datetime smoke
dt
lib/datetime.mq.md

main

m = > dt.from_unix unix=0

print text=iso)

sh = > dt.in_zone dt=m zone="Asia/Shanghai"

print text=iso)

p = > dt.parse text="2020-01-02T03:04:05+08:00" u = > dt.to_unix dt=p

print text=u

n = > dt.add dt=m days=1 nu = > dt.to_unix dt=n

print text=nu

d = > dt.format dt=sh style="date"

print text=d