Skip to main content

Module os

Module os 

Source
Expand description

The operating system library.

Operating system facilities: the clock, dates and times, environment variables, file management and process control.

Functions§

clock
Returns the CPU time used by the program.
date
Formats a date and time.
difftime
Returns the difference between two times.
execute
Runs a shell command.
exit
Terminates the host program.
getenv
Reads an environment variable.
remove
Deletes a file.
rename
Renames a file or directory.
setlocale
Sets the current locale of the program.
time
Returns the current time, or converts a date table to a time.
tmpname
Returns a name usable for a temporary file.