🚀 add os.time() to get the local time string

This commit is contained in:
ValKmjolnir
2022-06-12 19:08:31 +08:00
parent b8283c5743
commit 60952e1d2f
5 changed files with 62 additions and 49 deletions
+2 -1
View File
@@ -440,7 +440,8 @@ var dylib=
var os=
{
# get a string that tell which os it runs on.
platform: func(){return __builtin_platform;}
platform: func(){return __builtin_platform;},
time: func(){return __builtin_logtime; }
};
# runtime gives us some functions that we could manage it manually.