Environment and system. import env, effect.
Get the current Unix timestamp in seconds.
let ts = env.unix_timestamp()
Get the command-line arguments as a list of strings.
let args = env.args()
Get the value of an environment variable, or none if not set.
env.get("HOME") // => some("/Users/alice")
Set an environment variable.
env.set("MY_VAR", "hello")
Get the current working directory.
let dir = env.cwd()
Get the current time in milliseconds since epoch.
let ms = env.millis()
Sleep for the given number of milliseconds.
env.sleep_ms(1000) // sleep 1 second
Get the system temporary directory path.
let tmp = env.temp_dir()
Get the operating system name (linux, macos, windows).
env.os() // => "macos"