feat(stdlib): add datetime and project-mode clock APIs
This commit is contained in:
1 parent
cffb6790be
commit
ae69391bc0
15 files changed
+527
-11
No files matched your search
@@ -0,0 +1,10 @@
|
||||
---
|
||||
import:
|
||||
clock: "std:clock"
|
||||
---
|
||||
|
||||
## main
|
||||
|
||||
**现在 = clock.现在()**
|
||||
|
||||
*[现在.ok, 类型(现在.value), 现在.value > 1600000000000]*
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
import:
|
||||
datetime: "std:datetime"
|
||||
---
|
||||
|
||||
## main
|
||||
|
||||
*[datetime.格式化(0), datetime.格式化(1700000000123), datetime.解析("1970-01-01T00:00:00Z").value, datetime.解析("2026-11-21T08:00:00.123Z").value, datetime.解析("2026-13-01T00:00:00Z").ok, datetime.解析("2026-02-29T00:00:00Z").ok, datetime.格式化(-1)]*
|
||||
Reference in new issue
Block a user