public class Timestamp
extends scala.AnyVal
Helper for dealing with points in time rather than durations. We mark it private[http] because we don't want to support it as public API.
Modifier and Type | Class and Description |
---|---|
static class |
Timestamp.Ordering$ |
Constructor and Description |
---|
Timestamp(long timestampNanos) |
Modifier and Type | Method and Description |
---|---|
boolean |
isFinite() |
boolean |
isFuture() |
boolean |
isNever() |
boolean |
isPast() |
boolean |
isPast(Timestamp now) |
static Timestamp |
never() |
static Timestamp |
now() |
long |
timestampNanos() |
public static Timestamp now()
public static Timestamp never()
public long timestampNanos()
public boolean isPast()
public boolean isPast(Timestamp now)
public boolean isFuture()
public boolean isFinite()
public boolean isNever()