Package org.jpmml.model.temporals
Class DateTime
- java.lang.Object
-
- org.jpmml.model.temporals.Instant<DateTime>
-
- org.jpmml.model.temporals.DateTime
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DateTime>,ComplexValue
public class DateTime extends Instant<DateTime>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DateTime that)booleanequals(java.lang.Object object)java.lang.Stringformat(java.lang.String pattern)DataTypegetDataType()java.time.LocalDateTimegetDateTime()inthashCode()static DateTimeparse(java.lang.String value)DatetoDate()SecondsSinceDatetoSecondsSinceYear(int year)java.lang.StringtoSimpleValue()TimetoTime()static DateTimevalueOf(java.lang.Object value)
-
-
-
Method Detail
-
getDataType
public DataType getDataType()
- Specified by:
getDataTypein classInstant<DateTime>
-
toSimpleValue
public java.lang.String toSimpleValue()
- Returns:
- A non-
nullvalue, which can be converted to String representation viaObject.toString().
-
format
public java.lang.String format(java.lang.String pattern)
-
toDate
public Date toDate()
-
toTime
public Time toTime()
-
toSecondsSinceYear
public SecondsSinceDate toSecondsSinceYear(int year)
-
compareTo
public int compareTo(DateTime that)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
getDateTime
public java.time.LocalDateTime getDateTime()
-
parse
public static DateTime parse(java.lang.String value) throws java.time.format.DateTimeParseException
- Throws:
java.time.format.DateTimeParseException
-
valueOf
public static DateTime valueOf(java.lang.Object value)
-
-