Schnittstelle ITimeHandler


public interface ITimeHandler
  • Methodendetails

    • timeNow

      String timeNow()
      Get the current time.
      Gibt zurück:
      the current time
    • format

      String format(LocalDateTime localDateTime)
      Get the current time.
      Parameter:
      localDateTime - the LocalDateTime
      Gibt zurück:
      the current time formatted
    • format

      String format(LocalDateTime localDateTime, DateTimeFormatter dateTimeFormatter)
      Get the current time.
      Parameter:
      localDateTime - the time
      dateTimeFormatter - the format
      Gibt zurück:
      the current time in the format
    • timeIn

      String timeIn(int years, int months, int days, int hours, int minutes, int seconds)
      Get the time in the future.
      Parameter:
      years - the years
      months - the months
      days - the days
      hours - the hours
      minutes - the minutes
      seconds - the seconds
      Gibt zurück:
      the time
    • timeIn

      String timeIn(int time, TimeUnit timeUnit)
      Get the time in the future.
      Parameter:
      time - the time
      timeUnit - the time unit
      Gibt zurück:
      the time
    • timeBack

      String timeBack(int years, int months, int days, int hours, int minutes, int seconds)
      Get the time in the past.
      Parameter:
      years - the years
      months - the months
      days - the days
      hours - the hours
      minutes - the minutes
      seconds - the seconds
      Gibt zurück:
      the time
    • timeBack

      String timeBack(int time, TimeUnit timeUnit)
      Get the time in the past.
      Parameter:
      time - the time
      timeUnit - the time unit
      Gibt zurück:
      the time
    • zero

      String zero()
      Get the zero time.
      Gibt zurück:
      "-1"
    • today

      String today()
      Get the date of today. (dd. MM yyyy)
      Gibt zurück:
      the date of today
    • timeString

      String timeString(String time)
      Get the time as a string. Interesting for a punish system.
      Parameter:
      time - the time
      Gibt zurück:
      the time as a string
    • later

      boolean later(String time)
      Parameter:
      time - the time
      Gibt zurück:
      true if the time is after now, otherwise false
    • beforeToday

      boolean beforeToday(String time)
      Parameter:
      time - the time
      Gibt zurück:
      true if the time is before now, otherwise false
    • timeZone

      String timeZone(ICorePlayer player)
      Get the time zone in players language.
      Parameter:
      player - the player
      Gibt zurück:
      the time zone
    • localDateTime

      LocalDateTime localDateTime(long millis)
      Get the LocalDateTime of millis.
      Gibt zurück:
      the LocalDateTime
    • dateTimeFormatter

      DateTimeFormatter dateTimeFormatter()
      Gibt zurück:
      the DateTimeFormatter (dd MM yyyy, HH:mm:ss)