Files
marqdo/lib/time.mq.md
T
cflmyandCursor fecaacd5be docs(lib): narrate remaining stdlib modules (M2)
Add module intros and per-function purpose lines across EN/ZH libs, with
callable examples on the smaller modules; keep + params and host bodies intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 11:47:35 +08:00

609 B

title, description
title description
lib/time English time wrappers

Unix time, format, parse, and sleep helpers.

now_unix

Current Unix time in seconds.

Caller: [time.now_unix]

> host_now_unix

now_ms

Current Unix time in milliseconds.

> host_now_ms

format

+ `unix`
+ `pattern`

Format unix seconds with pattern.

> host_format_time unix=unix pattern=pattern

sleep_ms

+ `ms`

Sleep for ms milliseconds.

> host_sleep_ms ms=ms

parse

+ `text`
+ `pattern`

Parse text as time with pattern; returns unix seconds.

> host_parse_time text=text pattern=pattern