Package com.relogiclabs.jschema.time
Class JsonDateTime
Object
JsonDateTime
- All Implemented Interfaces:
Comparable<JsonDateTime>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJsonDateTime
(DateTimeType type, int year, int month, int day) JsonDateTime
(DateTimeType type, int year, int month, int day, int hour, int minute, int second, int fraction, JsonUtcOffset utcOffset) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(JsonDateTime other) createNode
(JString dateTime) int
getDay()
int
int
getHour()
int
int
getMonth()
int
getType()
int
getYear()
toString()
-
Field Details
-
UNSET
public static final int UNSET- See Also:
-
-
Constructor Details
-
JsonDateTime
-
JsonDateTime
public JsonDateTime(DateTimeType type, int year, int month, int day, int hour, int minute, int second, int fraction, JsonUtcOffset utcOffset)
-
-
Method Details
-
getDayOfWeek
-
compareTo
- Specified by:
compareTo
in interfaceComparable<JsonDateTime>
-
createNode
-
toString
-
getType
-
getYear
public int getYear() -
getMonth
public int getMonth() -
getDay
public int getDay() -
getHour
public int getHour() -
getMinute
public int getMinute() -
getSecond
public int getSecond() -
getFraction
public int getFraction() -
getUtcOffset
-