public class NumericDate extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addSeconds(long seconds) |
boolean |
equals(Object other) |
static NumericDate |
fromMilliseconds(long millisecondsFromEpoch) |
static NumericDate |
fromSeconds(long secondsFromEpoch) |
long |
getValue()
Returns a numeric value representing the number of seconds from
1970-01-01T0:0:0Z UTC until the given UTC date/time
|
long |
getValueInMillis() |
int |
hashCode() |
boolean |
isAfter(NumericDate when) |
boolean |
isBefore(NumericDate when) |
boolean |
isOnOrAfter(NumericDate when) |
static NumericDate |
now() |
void |
setValue(long value) |
String |
toString() |
public static NumericDate now()
public static NumericDate fromSeconds(long secondsFromEpoch)
public static NumericDate fromMilliseconds(long millisecondsFromEpoch)
public void addSeconds(long seconds)
public long getValue()
public void setValue(long value)
public long getValueInMillis()
public boolean isBefore(NumericDate when)
public boolean isOnOrAfter(NumericDate when)
public boolean isAfter(NumericDate when)
Copyright © 2021. All rights reserved.