Time lib and http

This commit is contained in:
allexanderbergmns
2026-08-25 15:39:44 +02:00
parent 4ccc8a0f95
commit 5daadce7a9
11 changed files with 310 additions and 7 deletions
+8
View File
@@ -974,6 +974,14 @@ fn builtin_spec(name string) (int, int) {
'build_is_dir' { native_build_is_dir, 1 }
'cwd' { native_cwd, 0 }
'json_pretty' { native_json_pretty, 1 }
// HTTP client
'http_get' { native_http_get, 1 }
'http_post' { native_http_post, 2 }
// date/time
'now' { native_now, 0 }
'time_ms' { native_time_ms, 0 }
'format_time' { native_format_time, 2 }
'parse_time' { native_parse_time, 1 }
else { -1, 0 }
}
}