Files
marqdo/public/stdlib/时间.mq.md
T
cflmyandCursor 7317a653c7 fix(ci): run public pages via bash script with per-file logging
Move the Build & export loop into scripts/run-public-pages.sh (explicit
bash, skip files without # main) so CI failures show which demo broke.
Also quote remaining time/json italic string args.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 12:27:57 +08:00

508 B


title: lib/时间 — 时钟 description: Unix 时间、格式化、解析、睡眠 导入 时间:lib/时间.mq.md

main

导入 lib/时间.mq.md。函数:此刻秒、此刻毫秒、格式化(秒, 格式)、解析时间(内容, 格式)、睡眠毫秒(毫秒)。格式为 strftime。

s = > 时间.格式化 秒=0 格式="%Y-%m-%d"

打印 内容=s

u = > 时间.解析时间 内容="1970-01-01 00:00:00" 格式="%Y-%m-%d %H:%M:%S"

打印 内容=u

时间.睡眠毫秒 毫秒=0