Class SDLTime

java.lang.Object
org.lwjgl.sdl.SDLTime

public class SDLTime extends Object
  • Field Details

    • SDL_DATE_FORMAT_YYYYMMDD

      public static final int SDL_DATE_FORMAT_YYYYMMDD
      See Also:
    • SDL_DATE_FORMAT_DDMMYYYY

      public static final int SDL_DATE_FORMAT_DDMMYYYY
      See Also:
    • SDL_DATE_FORMAT_MMDDYYYY

      public static final int SDL_DATE_FORMAT_MMDDYYYY
      See Also:
    • SDL_TIME_FORMAT_24HR

      public static final int SDL_TIME_FORMAT_24HR
      See Also:
    • SDL_TIME_FORMAT_12HR

      public static final int SDL_TIME_FORMAT_12HR
      See Also:
  • Method Details

    • nSDL_GetDateTimeLocalePreferences

      public static boolean nSDL_GetDateTimeLocalePreferences(long dateFormat, long timeFormat)
      bool SDL_GetDateTimeLocalePreferences(SDL_DateFormat * dateFormat, SDL_TimeFormat * timeFormat)
    • SDL_GetDateTimeLocalePreferences

      @NativeType("bool") public static boolean SDL_GetDateTimeLocalePreferences(@NativeType("SDL_DateFormat *") @Nullable IntBuffer dateFormat, @NativeType("SDL_TimeFormat *") @Nullable IntBuffer timeFormat)
      bool SDL_GetDateTimeLocalePreferences(SDL_DateFormat * dateFormat, SDL_TimeFormat * timeFormat)
    • nSDL_GetCurrentTime

      public static boolean nSDL_GetCurrentTime(long ticks)
      bool SDL_GetCurrentTime(SDL_Time * ticks)
    • SDL_GetCurrentTime

      @NativeType("bool") public static boolean SDL_GetCurrentTime(@NativeType("SDL_Time *") LongBuffer ticks)
      bool SDL_GetCurrentTime(SDL_Time * ticks)
    • nSDL_TimeToDateTime

      public static boolean nSDL_TimeToDateTime(long ticks, long dt, boolean localTime)
      bool SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime * dt, bool localTime)
    • SDL_TimeToDateTime

      @NativeType("bool") public static boolean SDL_TimeToDateTime(@NativeType("SDL_Time") long ticks, @NativeType("SDL_DateTime *") SDL_DateTime dt, @NativeType("bool") boolean localTime)
      bool SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime * dt, bool localTime)
    • nSDL_DateTimeToTime

      public static boolean nSDL_DateTimeToTime(long dt, long ticks)
      bool SDL_DateTimeToTime(SDL_DateTime const * dt, SDL_Time * ticks)
    • SDL_DateTimeToTime

      @NativeType("bool") public static boolean SDL_DateTimeToTime(@NativeType("SDL_DateTime const *") SDL_DateTime dt, @NativeType("SDL_Time *") LongBuffer ticks)
      bool SDL_DateTimeToTime(SDL_DateTime const * dt, SDL_Time * ticks)
    • nSDL_TimeToWindows

      public static void nSDL_TimeToWindows(long ticks, long dwLowDateTime, long dwHighDateTime)
      void SDL_TimeToWindows(SDL_Time ticks, Uint32 * dwLowDateTime, Uint32 * dwHighDateTime)
    • SDL_TimeToWindows

      public static void SDL_TimeToWindows(@NativeType("SDL_Time") long ticks, @NativeType("Uint32 *") @Nullable IntBuffer dwLowDateTime, @NativeType("Uint32 *") @Nullable IntBuffer dwHighDateTime)
      void SDL_TimeToWindows(SDL_Time ticks, Uint32 * dwLowDateTime, Uint32 * dwHighDateTime)
    • SDL_TimeFromWindows

      @NativeType("SDL_Time") public static long SDL_TimeFromWindows(@NativeType("Uint32") int dwLowDateTime, @NativeType("Uint32") int dwHighDateTime)
      SDL_Time SDL_TimeFromWindows(Uint32 dwLowDateTime, Uint32 dwHighDateTime)
    • SDL_GetDaysInMonth

      public static int SDL_GetDaysInMonth(int year, int month)
      int SDL_GetDaysInMonth(int year, int month)
    • SDL_GetDayOfYear

      public static int SDL_GetDayOfYear(int year, int month, int day)
      int SDL_GetDayOfYear(int year, int month, int day)
    • SDL_GetDayOfWeek

      public static int SDL_GetDayOfWeek(int year, int month, int day)
      int SDL_GetDayOfWeek(int year, int month, int day)