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>
This commit is contained in:
cflmyandCursor committed 2026-09-14 11:47:35 +08:00
1 parent 53bc3538da
commit fecaacd5be
49 files changed
+617 -21

No files matched your search

+14
View File
@@ -3,27 +3,41 @@ title: lib/time
description: 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`*