public class DateTimePrecise extends Object
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(DateTimePrecise other) |
boolean |
equals(Object o) |
double |
getAsDouble() |
double |
getFractionOfSeconds() |
long |
getSeconds() |
byte |
getTimeZoneOffset() |
boolean |
isAfter(DateTimePrecise other)
Check if this date is after the specified date
|
boolean |
isAfterOrEqual(DateTimePrecise other)
Check if this date is after or equal to the specified date
|
boolean |
isBefore(DateTimePrecise other)
Check if this date is before the specified date
|
boolean |
isBeforeOrEqual(DateTimePrecise 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 byte getTimeZoneOffset()
public double getAsDouble()
public boolean equals(DateTimePrecise other)
public boolean isBefore(DateTimePrecise other)
other
- public boolean isBeforeOrEqual(DateTimePrecise other)
other
- public boolean isAfter(DateTimePrecise other)
other
- public boolean isAfterOrEqual(DateTimePrecise other)
other
- public boolean isPositiveInfinity()
public boolean isNegativeInfinity()
public boolean isNow()
Copyright © 2016 Sensia Software LLC. All rights reserved.