Implement most '%' formatting types for os.date()

This commit is contained in:
James Roseborough
2013-07-14 15:31:32 +00:00
parent 07fb564edd
commit db1c7a17b2
4 changed files with 250 additions and 16 deletions

View File

@@ -458,7 +458,7 @@ A richer version for use by <em>JsePlatform</em> is :
src/jse/org/luaj/vm2/lib/jse/JseOsLib.java
</pre>
Time is a represented as number of milliseconds since the epoch,
Time is a represented as number of seconds since the epoch,
and most time and date formatting, locales, and other features
are not implemented.
@@ -887,6 +887,7 @@ Files are no longer hosted at LuaForge.
<tr valign="top"><td>&nbsp;&nbsp;<b>3.0-beta2</b></td><td><ul>
<li>LuaValue.checkfunction() now returns LuaFunction.</li>
<li>Fix os.time() to return a number of seconds.</li>
<li>Implement most '%' formatting types for os.date().</li>
</ul></td></tr>
</table></td></tr></table>
@@ -901,6 +902,6 @@ Files are no longer hosted at LuaForge.
<li>negative zero is treated as identical to integer value zero throughout luaj
<li>lua compiled into java bytecode using luajc cannot use string.dump() or xpcall()
<li>number formatting with string.format() is not supported
<li>date formatting with os.date() is not supported
<li>os.time(), and os.date() not completely supported
</ul>