Skip to content

global os


methods


os.resultof


function os.resultof(command)

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.launch


function os.launch(str)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.runtime


function os.runtime()

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.timezone


function os.timezone(difference)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.uuid


function os.uuid() -> uuid string

Reference:

os.pipeto


function os.pipeto(command)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.fulltime


function os.fulltime(
  t,
  default
)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.localtime


function os.localtime(
  t,
  default
)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.converttime


function os.converttime(
  t,
  default
)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.today


function os.today() ->  osdate

Reference:

os.now


function os.now() ->  string

@return - for example 2021-10-22 08:22:54. 😱 Types incomplete or incorrect? 🙏 Please contribute!

Return the UTC time without timezone, for example 2021-10-22 08:22:54.

Reference:

os.which


function os.which(filename: string) ->  string

Example:

print(os.which("inkscape.exe"))
print(os.which("inkscape"))
print(os.which("gs.exe"))
print(os.which("ps2pdf"))

Reference:

@see os.where

os.where


function os.where(filename: string) ->  string

Example:

print(os.where("inkscape.exe"))
print(os.where("inkscape"))
print(os.where("gs.exe"))
print(os.where("ps2pdf"))

Reference:

@see os.which

os.isleapyear


function os.isleapyear(year: integer) ->  boolean

Reference:

os.nofdays


function os.nofdays(
  year: integer,
  month: integer?,
  day: integer?
) -> number_of_days integer

@return number_of_days - Calculates the number of days of a month if the parameter day is missing. Calculates the number of days of the year if the parameters month and day are missing.

😱 Types incomplete or incorrect? 🙏 Please contribute!

Calculate the number of days.

Reference:

os.weekday


function os.weekday(
  day,
  month,
  year
)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.validdate


function os.validdate(
  year,
  month,
  day
)

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!

os.date


function os.date(
  format: string?,
  time: integer?
) ->  (string|osdate)

Return a string or a table containing date and time, formatted according to the given string format.

If the parameter format is missing the format string %Y-%m-%d %H:%M is used.

Reference:

os.setexitcode


function os.setexitcode(code: (integer|string))

Reference:

@see os.exit

os.exit


function os.exit(code: (integer|string)?)

Reference:

@see os.setexitcode

fields


os.platform


os.platform: string = ""

Reference:

os.libsuffix


os.libsuffix: string = ""

Reference:

os.binsuffix


os.binsuffix: string = ""

Reference: