|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.time.TimeCalculator
A date and time calculator.
Constructor Summary | |
TimeCalculator()
|
Method Summary | |
static Timestamp |
addTimestamp(Timestamp t0,
Timestamp t1)
Add one timestamp to another. |
static ElapsedMillisecondTimestamp |
addTimestampM(RelativeTimestamp t0,
RelativeTimestamp t1)
Add one elapsed timestamp to another elapsed timestamp. |
static MillisecondTimestamp |
addTimestampM(Timestamp t0,
Timestamp t1)
Add one millisecond timestamp to another. |
static ElapsedNanosecondTimestamp |
addTimestampN(RelativeTimestamp t0,
RelativeTimestamp t1)
Add one elapsed timestamp to another. |
static NanosecondTimestamp |
addTimestampN(Timestamp t0,
Timestamp t1)
Add one nanosecond timestamp to another. |
static ElapsedSecondTimestamp |
addTimestampS(RelativeTimestamp t0,
RelativeTimestamp t1)
Add one elapsed timestamp to another. |
static SecondTimestamp |
addTimestampS(Timestamp t0,
Timestamp t1)
Add one second timestamp to another. |
static ElapsedMicrosecondTimestamp |
addTimestampU(RelativeTimestamp t0,
RelativeTimestamp t1)
Add one elapsed timestamp to another. |
static MicrosecondTimestamp |
addTimestampU(Timestamp t0,
Timestamp t1)
Add one microsecond timestamp to another. |
static ElapsedMicrosecondTimestamp |
elapsedAsMicrosSince(AbsoluteTimestamp since)
Microseconds that have elasped since the specific time. |
static ElapsedMillisecondTimestamp |
elapsedAsMillisSince(AbsoluteTimestamp since)
Milliseconds that have elasped since the specific time. |
static ElapsedNanosecondTimestamp |
elapsedAsNanosSince(AbsoluteTimestamp since)
Nanoseconds that have elasped since the specific time. |
static ElapsedSecondTimestamp |
elapsedAsSecondsSince(AbsoluteTimestamp since)
Seconds that have elasped since the specific time. |
static RelativeTimestamp |
elapsedSince(Timestamp since)
Time that has elasped since the specified time. |
static boolean |
equals(Timestamp t0,
Timestamp t1)
Equals |
static boolean |
greaterThan(Timestamp t0,
Timestamp t1)
Greater Than |
static boolean |
greaterThanEquals(Timestamp t0,
Timestamp t1)
GreaterThanEquals |
static boolean |
lessThan(Timestamp t0,
Timestamp t1)
Less Than |
static boolean |
lessThanEquals(Timestamp t0,
Timestamp t1)
LessThanEquals |
static boolean |
notEquals(Timestamp t0,
Timestamp t1)
Not Equals |
static Timestamp |
subtractTimestamp(Timestamp t0,
Timestamp t1)
Substract one timestamp from another. |
static ElapsedMillisecondTimestamp |
subtractTimestampM(RelativeTimestamp t0,
RelativeTimestamp t1)
Subtract one elapsed timestamp from another elapsed timestamp. |
static MillisecondTimestamp |
subtractTimestampM(Timestamp t0,
Timestamp t1)
Subtract one millisecond timestamp from another. |
static ElapsedNanosecondTimestamp |
subtractTimestampN(RelativeTimestamp t0,
RelativeTimestamp t1)
Subtract one elapsed timestamp from another. |
static NanosecondTimestamp |
subtractTimestampN(Timestamp t0,
Timestamp t1)
Subtract one nanosecond timestamp from another. |
static ElapsedSecondTimestamp |
subtractTimestampS(RelativeTimestamp t0,
RelativeTimestamp t1)
Subtract one elapsed timestamp from another. |
static SecondTimestamp |
subtractTimestampS(Timestamp t0,
Timestamp t1)
Subtract one second timestamp from another. |
static ElapsedMicrosecondTimestamp |
subtractTimestampU(RelativeTimestamp t0,
RelativeTimestamp t1)
Subtract one elapsed timestamp from another. |
static MicrosecondTimestamp |
subtractTimestampU(Timestamp t0,
Timestamp t1)
Subtract one microsecond timestamp from another. |
static java.util.Date |
toDate(Timestamp ts)
Convert a Timestamp to a java.util.Date. |
static MicrosecondTimestamp |
toMicros(AbsoluteTimestamp ts)
Convert AbsoluteTimestamp to MicrosecondScale. |
static ElapsedMicrosecondTimestamp |
toMicros(RelativeTimestamp ts)
Convert RelativeTimestamp to ElapsedMicrosecondTimestamp. |
static MicrosecondScale |
toMicros(Timestamp ts)
Convert a Timestamp to MicrosecondScale Timestamp. |
static MillisecondTimestamp |
toMillis(AbsoluteTimestamp ts)
Convert AbsoluteTimestamp to MillisecondScale. |
static ElapsedMillisecondTimestamp |
toMillis(RelativeTimestamp ts)
Convert RelativeTimestamp to ElapsedMillisecondTimestamp. |
static MillisecondScale |
toMillis(Timestamp ts)
Convert a Timestamp to MillisecondScale Timestamp. |
static NanosecondTimestamp |
toNanos(AbsoluteTimestamp ts)
Convert AbsoluteTimestamp to NanosecondScale. |
static ElapsedNanosecondTimestamp |
toNanos(RelativeTimestamp ts)
Convert RelativeTimestamp to ElapsedNanosecondTimestamp. |
static NanosecondScale |
toNanos(Timestamp ts)
Convert a Timestamp to NanosecondScale Timestamp. |
static SecondTimestamp |
toSeconds(AbsoluteTimestamp ts)
Convert AbsoluteTimestamp to SecondTimestamp. |
static ElapsedSecondTimestamp |
toSeconds(RelativeTimestamp ts)
Convert RelativeTimestamp to ElapsedSecondTimestamp. |
static SecondScale |
toSeconds(Timestamp ts)
Convert a Timestamp to SecondScale Timestamp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeCalculator()
Method Detail |
public static Timestamp addTimestamp(Timestamp t0, Timestamp t1)
public static SecondTimestamp addTimestampS(Timestamp t0, Timestamp t1)
public static ElapsedSecondTimestamp addTimestampS(RelativeTimestamp t0, RelativeTimestamp t1)
public static MillisecondTimestamp addTimestampM(Timestamp t0, Timestamp t1)
public static ElapsedMillisecondTimestamp addTimestampM(RelativeTimestamp t0, RelativeTimestamp t1)
public static MicrosecondTimestamp addTimestampU(Timestamp t0, Timestamp t1)
public static ElapsedMicrosecondTimestamp addTimestampU(RelativeTimestamp t0, RelativeTimestamp t1)
public static NanosecondTimestamp addTimestampN(Timestamp t0, Timestamp t1)
public static ElapsedNanosecondTimestamp addTimestampN(RelativeTimestamp t0, RelativeTimestamp t1)
public static Timestamp subtractTimestamp(Timestamp t0, Timestamp t1)
public static SecondTimestamp subtractTimestampS(Timestamp t0, Timestamp t1)
public static ElapsedSecondTimestamp subtractTimestampS(RelativeTimestamp t0, RelativeTimestamp t1)
public static MillisecondTimestamp subtractTimestampM(Timestamp t0, Timestamp t1)
public static ElapsedMillisecondTimestamp subtractTimestampM(RelativeTimestamp t0, RelativeTimestamp t1)
public static MicrosecondTimestamp subtractTimestampU(Timestamp t0, Timestamp t1)
public static ElapsedMicrosecondTimestamp subtractTimestampU(RelativeTimestamp t0, RelativeTimestamp t1)
public static NanosecondTimestamp subtractTimestampN(Timestamp t0, Timestamp t1)
public static ElapsedNanosecondTimestamp subtractTimestampN(RelativeTimestamp t0, RelativeTimestamp t1)
public static RelativeTimestamp elapsedSince(Timestamp since)
public static ElapsedSecondTimestamp elapsedAsSecondsSince(AbsoluteTimestamp since)
public static ElapsedMillisecondTimestamp elapsedAsMillisSince(AbsoluteTimestamp since)
public static ElapsedMicrosecondTimestamp elapsedAsMicrosSince(AbsoluteTimestamp since)
public static ElapsedNanosecondTimestamp elapsedAsNanosSince(AbsoluteTimestamp since)
public static SecondScale toSeconds(Timestamp ts)
public static SecondTimestamp toSeconds(AbsoluteTimestamp ts)
public static ElapsedSecondTimestamp toSeconds(RelativeTimestamp ts)
public static MillisecondScale toMillis(Timestamp ts)
public static MillisecondTimestamp toMillis(AbsoluteTimestamp ts)
public static ElapsedMillisecondTimestamp toMillis(RelativeTimestamp ts)
public static MicrosecondScale toMicros(Timestamp ts)
public static MicrosecondTimestamp toMicros(AbsoluteTimestamp ts)
public static ElapsedMicrosecondTimestamp toMicros(RelativeTimestamp ts)
public static NanosecondScale toNanos(Timestamp ts)
public static NanosecondTimestamp toNanos(AbsoluteTimestamp ts)
public static ElapsedNanosecondTimestamp toNanos(RelativeTimestamp ts)
public static java.util.Date toDate(Timestamp ts)
public static boolean equals(Timestamp t0, Timestamp t1)
public static boolean notEquals(Timestamp t0, Timestamp t1)
public static boolean lessThanEquals(Timestamp t0, Timestamp t1)
public static boolean lessThan(Timestamp t0, Timestamp t1)
public static boolean greaterThanEquals(Timestamp t0, Timestamp t1)
public static boolean greaterThan(Timestamp t0, Timestamp t1)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |