Class DateTime.SecondsAndNanos

public static final class DateTime.SecondsAndNanos implements Serializable

A timestamp represented as the number of seconds and nanoseconds since Epoch.

Inheritance

Object > DateTime.SecondsAndNanos

Implements

Serializable

Static Methods

ofSecondsAndNanos(long seconds, int nanos)

public static DateTime.SecondsAndNanos ofSecondsAndNanos(long seconds, int nanos)
Parameters
NameDescription
secondslong
nanosint
Returns
TypeDescription
DateTime.SecondsAndNanos

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getNanos()

public int getNanos()
Returns
TypeDescription
int

getSeconds()

public long getSeconds()
Returns
TypeDescription
long

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides