public class DateTimeDouble extends java.lang.Object implements IDateTime
Immutable implementation of IDateTime storing value directly as a double representing julian time (numer of decimal seconds past the 1970-01-01T00:00:00 epoch)
Constructor and Description |
---|
DateTimeDouble() |
DateTimeDouble(double julianTime) |
DateTimeDouble(double julianTime,
int timeZoneOffset) |
Modifier and Type | Method and Description |
---|---|
DateTimeDouble |
copy() |
boolean |
equals(java.lang.Object other)
Check if this date is equal to the specified date
|
double |
getAsDouble()
Get this date as julian time.
|
int |
getTimeZoneOffset()
Get the time zone offset associated to this date
|
int |
hashCode() |
boolean |
isAfter(IDateTime other)
Check if this date is after the specified date
|
boolean |
isAfterOrEqual(IDateTime other)
Check if this date is after or equal to the specified date
|
boolean |
isBefore(IDateTime other)
Check if this date is before the specified date
|
boolean |
isBeforeOrEqual(IDateTime other)
Check if this date is before or equal to the specified date
|
boolean |
isNegativeInfinity() |
boolean |
isNow() |
boolean |
isPositiveInfinity() |
public DateTimeDouble()
public DateTimeDouble(double julianTime)
public DateTimeDouble(double julianTime, int timeZoneOffset)
public DateTimeDouble copy()
public final int getTimeZoneOffset()
IDateTime
getTimeZoneOffset
in interface IDateTime
public final double getAsDouble()
IDateTime
getAsDouble
in interface IDateTime
public final boolean equals(java.lang.Object other)
IDateTime
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean isBefore(IDateTime other)
IDateTime
public final boolean isBeforeOrEqual(IDateTime other)
IDateTime
isBeforeOrEqual
in interface IDateTime
public final boolean isAfter(IDateTime other)
IDateTime
public final boolean isAfterOrEqual(IDateTime other)
IDateTime
isAfterOrEqual
in interface IDateTime
public final boolean isPositiveInfinity()
isPositiveInfinity
in interface IDateTime
public final boolean isNegativeInfinity()
isNegativeInfinity
in interface IDateTime