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

+8
View File
@@ -3,6 +3,8 @@ title: lib/datetime
description: Calendar moments as maps {unix, zone, iso} (Mid2 M7). Fixed offsets + a few IANA aliases.
---
Calendar moments as maps {unix, zone, iso} (Mid2 M7). Fixed offsets + a few IANA aliases.
## now
Current UTC moment map.
@@ -13,11 +15,15 @@ Current UTC moment map.
+ `unix`
+ `zone`=None
from_unix.
*> host_datetime_from_unix unix=`unix` zone=`zone`*
## to_unix
+ `dt`
to_unix.
*> host_datetime_to_unix dt=`dt`*
## parse
@@ -43,6 +49,8 @@ Styles: `rfc3339` (default), `date`, `time`, or a strftime pattern.
+ `minutes`=None
+ `seconds`=None
add.
*> host_datetime_add dt=`dt` days=`days` hours=`hours` minutes=`minutes` seconds=`seconds`*
## in_zone