public class DateTimePrecise extends java.lang.Object implements IDateTime
Immutable implementation of a DateTime object
Constructor and Description |
---|
DateTimePrecise() |
DateTimePrecise(double time) |
DateTimePrecise(long seconds,
double fractionOfSeconds) |
DateTimePrecise(long seconds,
double fractionOfSeconds,
byte timeZoneOffset) |
Modifier and Type | Method and Description |
---|---|
DateTimePrecise |
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.
|
double |
getFractionOfSeconds() |
long |
getSeconds() |
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 DateTimePrecise()
public DateTimePrecise(double time)
public DateTimePrecise(long seconds, double fractionOfSeconds)
public DateTimePrecise(long seconds, double fractionOfSeconds, byte timeZoneOffset)
public DateTimePrecise copy()
public long getSeconds()
public double getFractionOfSeconds()
public int getTimeZoneOffset()
IDateTime
getTimeZoneOffset
in interface IDateTime
public double getAsDouble()
IDateTime
getAsDouble
in interface IDateTime
public boolean isBefore(IDateTime other)
public boolean isBeforeOrEqual(IDateTime other)
isBeforeOrEqual
in interface IDateTime
other
- public boolean isAfter(IDateTime other)
public boolean isAfterOrEqual(IDateTime other)
isAfterOrEqual
in interface IDateTime
other
- public boolean isPositiveInfinity()
isPositiveInfinity
in interface IDateTime
public boolean isNegativeInfinity()
isNegativeInfinity
in interface IDateTime
public boolean isNow()
public boolean equals(java.lang.Object other)
IDateTime
public final int hashCode()
hashCode
in class java.lang.Object