public class DateTime extends Instant<DateTime>
| Constructor and Description |
|---|
DateTime(int year,
int month,
int dayOfMonth,
int hour,
int minute,
int second) |
DateTime(LocalDateTime dateTime) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DateTime that) |
boolean |
equals(Object object) |
String |
format(String pattern) |
DataType |
getDataType() |
LocalDateTime |
getDateTime() |
int |
hashCode() |
static DateTime |
parse(String value) |
Date |
toDate() |
SecondsSinceDate |
toSecondsSinceYear(int year) |
String |
toSimpleValue() |
Time |
toTime() |
static DateTime |
valueOf(Object value) |
public DateTime(int year,
int month,
int dayOfMonth,
int hour,
int minute,
int second)
public DateTime(LocalDateTime dateTime)
public DataType getDataType()
getDataType in class Instant<DateTime>public String toSimpleValue()
null value,
which can be converted to String representation via Object.toString().public String format(String pattern)
format in class Instant<DateTime>String.format(String, Object...)public Date toDate()
public Time toTime()
public SecondsSinceDate toSecondsSinceYear(int year)
public int compareTo(DateTime that)
public LocalDateTime getDateTime()
public static DateTime parse(String value) throws DateTimeParseException
DateTimeParseExceptionCopyright © 2022. All rights reserved.