71
When called without arguments, date returns a reasonable date and time representation that
depends on the host system and on the current locale (that is,
os.date()
is equivalent to
os.date("%c")).
os.difftime (t2, t1)
Returns the number of seconds from time t1 to time t2. In POSIX, Windows, and some other
systems, this value is exactly t2-t1.
os.execute ([command])
This function is equivalent to the C function system. It passes command to be executed by an
operating system shell. It returns a status code, which is system-dependent. If command is
absent, then it returns nonzero if a shell is available and zero otherwise.
os.exit ([code])
Calls the C function exit, with an optional code, to terminate the host program. The default value
for code is the success code.
os.getenv (varname)
Returns the value of the process environment variable varname, or
nil
if the variable is not
defined.
os.remove (filename)
Deletes the file or directory with the given name. Directories must be empty to be removed. If
this function fails, it returns nil, plus a string describing the error.
os.rename (oldname, newname)
Renames file or directory named oldname to newname. If this function fails, it returns
nil
, plus a
string describing the error.
os.time ([table])
Returns the current time when called without arguments, or a time representing the date and time
specified by the given table. This table must have fields year, month, and day, and may have
fields hour, min, sec, and
isdst
(for a description of these fields, see the
os.date
function).
The returned value is a number, whose meaning depends on your system. In POSIX, Windows,
and some other systems, this number counts the number of seconds since some given start time
(the "epoch"). In other systems, the meaning is not specified, and the number returned by time
can be used only as an argument to date and
difftime
.
os.tmpname ()
Returns a string with a file name that can be used for a temporary file. The file must be explicitly
opened before its use and explicitly removed when no longer needed. On some systems
(POSIX), this function also creates a file with that name, to avoid security risks. (Someone
else might create the file with wrong permissions in the time between getting the name and
creating the file.) You still have to open the file to use it and to remove it (even if you do not use
it).
When possible, you may prefer to use
io.tmpfile
, which automatically removes the file when the
program
ends.
Содержание LogicMachine3 Re:actor
Страница 10: ...10 Terminal connection schemes KNX TP...
Страница 12: ...12 24V power supply...
Страница 13: ...13 Analog inputs e g reed contact...
Страница 14: ...14 Analog inputs 0 10V...
Страница 15: ...15 Digital output...
Страница 16: ...16 Resistive sensor input...
Страница 17: ...17 Analog output...
Страница 26: ...26 Make sure that bus status is Online press button in ETS...
Страница 35: ...35 o Then minimize side bar by pressing on left arrow icon to make the map more visible...
Страница 83: ...83 66 if err then 67 alert FTP upload failed s err 68 end...
Страница 107: ...107...
Страница 108: ...108 1 14 Help Documentation for scripting syntaxes is displayed in Help tab...
Страница 122: ...122 4 16 Running processes System running processes can be seen in Status Running processes window...
Страница 126: ...126 Datapoints can be shown also in a way of table which can be later exported as CSV file...
Страница 141: ...141...