Skip to content

v0.0.10

Compare
Choose a tag to compare
@crossoverJie crossoverJie released this 06 Oct 03:07
· 45 commits to main since this release

What's Changed

Full Changelog: v0.0.9...v0.0.10

  • Runtime msg
  • New System/DateTime API
class DateTime{
    string getCurrentTime(string tz, string layout){
        return GetCurrentTime(tz, layout);
    }
    int unix(string tz){
        return Unix(tz);
    }
}

// system os api
class System{

    // Get os args.
    string[] getOSArgs(){
        return GetOSArgs();
    }
    string command(string name, string ...arg){
        return Command(name, arg);
    }
    // attention: perm is the decimal
    writeFile(string fileName, string value, int perm){
        WriteFile(fileName, value, perm);
    }
    // removes the named file
    remove(string fileName){
        Remove(fileName);
    }
}