Modifier and Type | Field and Description |
---|---|
static long |
INVALID |
static long |
MIN |
static long |
OFFSET |
Constructor and Description |
---|
DateTime(java.util.Date date) |
DateTime(DateTime timestamp) |
DateTime(long timestamp) |
DateTime(long timestamp,
double fractional_timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
add(DateTime dateTime) |
void |
add(double fractional_timestamp) |
void |
add(long timestamp) |
boolean |
after(DateTime t1) |
boolean |
before(DateTime t1) |
int |
compareTo(DateTime t1) |
void |
convertSystemTimeToUTC(long offset) |
boolean |
equals(DateTime dateTime) |
java.util.Date |
getDate() |
java.lang.Double |
getFractionalTimestamp() |
static java.lang.String |
getStringFromValue(java.lang.Long value)
Retrieves the String Representation of the Value
|
java.lang.Long |
getTimestamp() |
static java.lang.Long |
getValueFromString(java.lang.String value)
Returns the enum constant with the specified name.
|
java.lang.String |
toString() |
public static final long MIN
public static final long INVALID
public static final long OFFSET
public DateTime(long timestamp)
public DateTime(java.util.Date date)
public DateTime(DateTime timestamp)
public DateTime(long timestamp, double fractional_timestamp)
public static java.lang.String getStringFromValue(java.lang.Long value)
value
- The enum constantpublic static java.lang.Long getValueFromString(java.lang.String value)
value
- The enum string valuepublic boolean equals(DateTime dateTime)
public void convertSystemTimeToUTC(long offset)
public java.lang.Double getFractionalTimestamp()
public java.lang.Long getTimestamp()
public java.util.Date getDate()
public java.lang.String toString()
toString
in class java.lang.Object
public void add(DateTime dateTime)
public void add(long timestamp)
public void add(double fractional_timestamp)
public int compareTo(DateTime t1)
compareTo
in interface java.lang.Comparable<DateTime>
public boolean after(DateTime t1)
public boolean before(DateTime t1)