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 luaCallFrame, int int1)  
    static java.lang.String formatTime​(java.lang.String string, java.util.Calendar calendar)  
    static java.lang.Object getdate​(java.lang.String string, long long1, Platform platform)  
    static java.lang.Object getdate​(java.lang.String string, Platform platform)  
    static java.util.Date getDateFromTable​(KahluaTable kahluaTable)  
    static int getDayOfYear​(java.util.Calendar calendar)  
    static KahluaTable getTableFromDate​(java.util.Calendar calendar, Platform platform)  
    static int getWeekOfYear​(java.util.Calendar calendar, boolean boolean1, boolean boolean2)  
    static void register​(Platform platform, KahluaTable kahluaTable)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • register

      public static void register​(Platform platform, KahluaTable kahluaTable)
    • call

      public int call​(LuaCallFrame luaCallFrame, int int1)
      Specified by:
      call in interface JavaFunction
    • getdate

      public static java.lang.Object getdate​(java.lang.String string, Platform platform)
    • getdate

      public static java.lang.Object getdate​(java.lang.String string, long long1, Platform platform)
    • formatTime

      public static java.lang.String formatTime​(java.lang.String string, java.util.Calendar calendar)
    • getTableFromDate

      public static KahluaTable getTableFromDate​(java.util.Calendar calendar, Platform platform)
    • getDateFromTable

      public static java.util.Date getDateFromTable​(KahluaTable kahluaTable)
    • getDayOfYear

      public static int getDayOfYear​(java.util.Calendar calendar)
    • getWeekOfYear

      public static int getWeekOfYear​(java.util.Calendar calendar, boolean boolean1, boolean boolean2)