Module Mal4J

Class Time

java.lang.Object
dev.katsute.mal4j.anime.property.time.Time

public abstract class Time extends Object
Represents the time. Does not convert around timezones, will return the time exactly how it is written on the website.
Since:
1.0.0
Version:
1.0.0
Author:
Katsute
See Also:
  • Constructor Details

    • Time

      public Time()
  • Method Details

    • getHour

      public abstract Integer getHour()
      Returns the hour on a 24-hour clock (0-23).
      Returns:
      hour
      Since:
      1.0.0
    • get12Hour

      public abstract Integer get12Hour()
      Returns the hour on a 12-hour clock (1-12).
      Returns:
      hour
      Since:
      1.0.0
    • isAM

      public abstract Boolean isAM()
      Returns if the time is AM.
      Returns:
      if time is AM
      Since:
      1.0.0
      See Also:
    • isPM

      public abstract Boolean isPM()
      Returns if the time is PM.
      Returns:
      if time is PM
      Since:
      1.0.0
      See Also:
    • getMinute

      public abstract Integer getMinute()
      Returns the minute (0-59).
      Returns:
      minute
      Since:
      1.0.0