Files
marqdo/tests/lib/datetime-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

24 lines
436 B
Markdown

---
title: lib/datetime smoke
import dt:lib/datetime.mq.md
---
# main
**m = > dt.from_unix unix=0**
> print text=`m`[^iso]
**sh = > dt.in_zone dt=`m` zone="Asia/Shanghai"**
> print text=`sh`[^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`