|
Lua SPOT v1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.krka.kahlua.stdlib.OsLib
public class OsLib
Field Summary | |
---|---|
static int |
TIME_DIVIDEND
|
Method Summary | |
---|---|
int |
call(LuaCallFrame cf,
int nargs)
General contract Input: callFrame = the frame that contains all the arguments, and where all the results should be put. nArgs = number of function arguments callFrame.get(i) = an argument (0 <= i < nArgs) |
static java.lang.String |
formatTime(java.lang.String format,
java.util.Calendar cal)
|
static java.lang.Object |
getdate(java.lang.String format)
|
static java.lang.Object |
getdate(java.lang.String format,
long time)
|
static java.util.Date |
getDateFromTable(LuaTable time)
converts the relevant fields in the given luatable to a Date object. |
static int |
getDayOfYear(java.util.Calendar c)
|
static LuaTable |
getTableFromDate(java.util.Calendar c)
|
static int |
getWeekOfYear(java.util.Calendar c,
boolean weekStartsSunday,
boolean jan1midweek)
|
static void |
register(LuaState state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TIME_DIVIDEND
Method Detail |
---|
public static void register(LuaState state)
public int call(LuaCallFrame cf, int nargs)
JavaFunction
call
in interface JavaFunction
cf
- - the current callframe for the functionnargs
- - number of function arguments
public static java.lang.Object getdate(java.lang.String format)
public static java.lang.Object getdate(java.lang.String format, long time)
public static java.lang.String formatTime(java.lang.String format, java.util.Calendar cal)
public static LuaTable getTableFromDate(java.util.Calendar c)
public static java.util.Date getDateFromTable(LuaTable time)
time
- LuaTable with entries for year month and day, and optionally hour/min/sec
public static int getDayOfYear(java.util.Calendar c)
public static int getWeekOfYear(java.util.Calendar c, boolean weekStartsSunday, boolean jan1midweek)
|
Lua SPOT v1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |