Class DateTime.SecondsAndNanos (1.45.1)

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
Name Description
seconds long
nanos int
Returns
Type Description
DateTime.SecondsAndNanos

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getNanos()

public int getNanos()
Returns
Type Description
int

getSeconds()

public long getSeconds()
Returns
Type Description
long

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides