public final class UnixTime extends Object
| Constructor and Description |
|---|
UnixTime(long unixSeconds)
Creates a new UnixTime object with the specified DateTime.
|
UnixTime(java.time.OffsetDateTime dateTime)
Creates a new UnixTime object with the specified DateTime.
|
| Modifier and Type | Method and Description |
|---|---|
java.time.OffsetDateTime |
dateTime()
Returns the underlying DateTime.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
public UnixTime(java.time.OffsetDateTime dateTime)
dateTime - The DateTime object to wrap.public UnixTime(long unixSeconds)
unixSeconds - The Unix seconds value./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/