Class TimeMgmt

java.lang.Object
com.palmergames.util.TimeMgmt

public class TimeMgmt extends Object
  • Field Details

  • Constructor Details

    • TimeMgmt

      public TimeMgmt()
  • Method Details

    • formatCountdownTime

      public static String formatCountdownTime(long l)
    • formatCountdownTime

      public static String formatCountdownTime(Long l, Locale locale)
    • countdownTimeHoursRaw

      public static String countdownTimeHoursRaw(long l)
    • countdownTimeMinutesRaw

      public static String countdownTimeMinutesRaw(long l)
    • countdownTimeSecondsRaw

      public static String countdownTimeSecondsRaw(long l)
    • formatCountdownTimeHours

      public static String formatCountdownTimeHours(long l, org.bukkit.entity.Player player)
    • formatCountdownTimeMinutes

      public static String formatCountdownTimeMinutes(long l, org.bukkit.entity.Player player)
    • formatCountdownTimeSeconds

      public static String formatCountdownTimeSeconds(long l, org.bukkit.entity.Player player)
    • getFormattedTimeValue

      public static String getFormattedTimeValue(double timeMillis)
    • townyTime

      public static long townyTime()
      Calculates the time in seconds until the next new day event. TimeZone specific, including daylight savings.
      Returns:
      seconds until event
    • townyTime

      public static long townyTime(boolean cache)
      Calculates the time in seconds until the next new day event. TimeZone specific, including daylight savings.
      Parameters:
      cache - - Whether to use caching or not.
      Returns:
      seconds until event