java.lang.Object
dev.katsute.mal4j.anime.property.time.Time
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Integer
Returns the hour on a 12-hour clock (1-12).abstract Integer
getHour()
Returns the hour on a 24-hour clock (0-23).abstract Integer
Returns the minute (0-59).abstract Boolean
isAM()
Returns if the time is AM.abstract Boolean
isPM()
Returns if the time is PM.
-
Constructor Details
-
Time
public Time()
-
-
Method Details
-
getHour
Returns the hour on a 24-hour clock (0-23).- Returns:
- hour
- Since:
- 1.0.0
-
get12Hour
Returns the hour on a 12-hour clock (1-12).- Returns:
- hour
- Since:
- 1.0.0
-
isAM
Returns if the time is AM.- Returns:
- if time is AM
- Since:
- 1.0.0
- See Also:
-
isPM
Returns if the time is PM.- Returns:
- if time is PM
- Since:
- 1.0.0
- See Also:
-
getMinute
Returns the minute (0-59).- Returns:
- minute
- Since:
- 1.0.0
-