The System namespace differentiates Mildew from JavaScript and is inspired by the Java class
of the same name. System contains various utility functions but no file I/O.
Methods
(static) currentTimeMillis() → {integer}
Returns the number of milliseconds since January 1st, 1 AD. To get the number of milliseconds from Jan 1 1970, use
Date.now.
Returns:
The system time in milliseconds
- Type
- integer
(static) gc()
Requests that the D runtime perform a garbage collection cycle. The Mildew
garbage collector relies on the D runtime's garbage collection. Scripts should
not keep references to unused objects in the global scope or inside Objects that
do not go out of scope or are referenced likewise.
(static) getenv() → {Object}
Gets an Object containing the key value pairs (both key and value are Strings) of
all available shell environment variables such as HOME.
Returns:
Hash map of environment variables.
- Type
- Object