Files
marqdo/public/stdlib/时间.mq.md
T
cflmyandCursor a53ebb65ee Add host stdlib modules and unify view/run capabilities.
Ship fs/time/sys/json/net L1 libs (plus existing text/table), default-on host caps with soft exit under view, bilingual public/stdlib docs, and design notes for deferred math/foreign.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 10:03:54 +08:00

471 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