public final class UnixTime
extends java.lang.Object
Constructor and Description |
---|
UnixTime(long unixSeconds)
Creates a UnixTime object with the specified DateTime.
|
UnixTime(org.threeten.bp.OffsetDateTime dateTime)
Creates aUnixTime object with the specified DateTime.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
org.threeten.bp.OffsetDateTime |
getDateTime()
Get the underlying DateTime.
|
int |
hashCode() |
java.lang.String |
toString() |
public UnixTime(org.threeten.bp.OffsetDateTime dateTime)
dateTime
- The DateTime object to wrappublic UnixTime(long unixSeconds)
unixSeconds
- The Unix seconds valuepublic org.threeten.bp.OffsetDateTime getDateTime()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object