Package se.krka.kahlua.stdlib
Class OsLib
java.lang.Object
se.krka.kahlua.stdlib.OsLib
- All Implemented Interfaces:
JavaFunction
public class OsLib extends java.lang.Object implements JavaFunction
-
Field Summary
Fields Modifier and Type Field Description static int
TIME_DIVIDEND
static double
TIME_DIVIDEND_INVERTED
-
Method Summary
Modifier and Type Method Description int
call(LuaCallFrame cf, int nargs)
static java.lang.String
formatTime(java.lang.String format, java.util.Calendar cal)
static java.lang.Object
getdate(java.lang.String format, long time, Platform platform)
static java.lang.Object
getdate(java.lang.String format, Platform platform)
static java.util.Date
getDateFromTable(KahluaTable time)
static int
getDayOfYear(java.util.Calendar c)
static KahluaTable
getTableFromDate(java.util.Calendar c, Platform platform)
static int
getWeekOfYear(java.util.Calendar c, boolean weekStartsSunday, boolean jan1midweek)
static void
register(Platform platform, KahluaTable environment)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TIME_DIVIDEND
public static final int TIME_DIVIDEND- See Also:
- Constant Field Values
-
TIME_DIVIDEND_INVERTED
public static final double TIME_DIVIDEND_INVERTED- See Also:
- Constant Field Values
-
-
Method Details
-
register
-
call
- Specified by:
call
in interfaceJavaFunction
-
getdate
-
getdate
-
formatTime
public static java.lang.String formatTime(java.lang.String format, java.util.Calendar cal) -
getTableFromDate
-
getDateFromTable
-
getDayOfYear
public static int getDayOfYear(java.util.Calendar c) -
getWeekOfYear
public static int getWeekOfYear(java.util.Calendar c, boolean weekStartsSunday, boolean jan1midweek)
-