strftime<
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")
).
+the host system and on the current locale.
+(More specifically, os.date()
is equivalent to os.date("%c")
.)
@@ -9889,6 +10061,7 @@ Deletes the file (or empty directory, on POSIX systems)
with the given name.
If this function fails, it returns nil,
plus a string describing the error and the error code.
+Otherwise, it returns true.
@@ -9898,9 +10071,10 @@ plus a string describing the error and the error code.
-Renames file or directory named oldname
to newname
.
+Renames the file or directory named oldname
to newname
.
If this function fails, it returns nil,
plus a string describing the error and the error code.
+Otherwise, it returns true.
@@ -9946,16 +10120,25 @@ because of its reliance on C function setlocale
.
Returns the current time when called without arguments,
-or a time representing the date and time specified by the given table.
+or a time representing the local date and time specified by the given table.
This table must have fields year
, month
, and day
,
and may have fields
hour
(default is 12),
min
(default is 0),
sec
(default is 0),
and isdst
(default is nil).
+Other fields are ignored.
For a description of these fields, see the os.date
function.
+
+The values in these fields do not need to be inside their valid ranges.
+For instance, if sec
is -10,
+it means -10 seconds from the time specified by the other fields;
+if hour
is 1000,
+it means +1000 hours from the time specified by the other fields.
+
+
The returned value is a number, whose meaning depends on your system.
In POSIX, Windows, and some other systems,
@@ -10093,7 +10276,7 @@ valid lines.
For instance, the expression debug.getinfo(1,"n").name
returns
-a table with a name for the current function,
+a name for the current function,
if a reasonable name can be found,
and the expression debug.getinfo(print)
returns a table with all available information
@@ -10184,7 +10367,7 @@ represent variables with no known names
Returns the Lua value associated to u
.
-If u
is not a userdata,
+If u
is not a full userdata,
returns nil.
@@ -10383,7 +10566,7 @@ and as lua -
otherwise.
-When called without option -E
,
+When called without option -E
,
the interpreter checks for an environment variable LUA_INIT_5_3
(or LUA_INIT
if the versioned name is not defined)
before running any argument.
@@ -10464,10 +10647,18 @@ the interpreter waits for its completion
by issuing a different prompt.
+
+If the global variable _PROMPT
contains a string,
+then its value is used as the prompt.
+Similarly, if the global variable _PROMPT2
contains a string,
+its value is used as the secondary prompt
+(issued during incomplete statements).
+
+
In case of unprotected errors in the script,
the interpreter reports the error to the standard error stream.
-If the error object is not a string but
+If the error object is not a string but
has a metamethod __tostring
,
the interpreter calls this metamethod to produce the final message.
Otherwise, the interpreter converts the error object to a string
@@ -10599,7 +10790,8 @@ The bit32
library has been deprecated.
It is easy to require a compatible external library or,
better yet, to replace its functions with appropriate bitwise operations.
(Keep in mind that bit32
operates on 32-bit integers,
-while the bitwise operators in standard Lua operate on 64-bit integers.)
+while the bitwise operators in Lua 5.3 operate on Lua integers,
+which by default have 64 bits.)