Class TimeUtils
java.lang.Object
org.xrpl.xrpl4j.model.client.common.TimeUtils
Utility class for converting between XRPL timestamps and other time formats.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZonedDateTimexrplTimeToZonedDateTime(com.google.common.primitives.UnsignedLong xrplTime) Convert an XRPL timestamp to aZonedDateTime.
-
Constructor Details
-
TimeUtils
public TimeUtils()
-
-
Method Details
-
xrplTimeToZonedDateTime
public static ZonedDateTime xrplTimeToZonedDateTime(com.google.common.primitives.UnsignedLong xrplTime) Convert an XRPL timestamp to aZonedDateTime. The time zone of theZonedDateTimewill be UTC.- Parameters:
xrplTime- AnUnsignedLongrepresenting an XRPL timestamp.- Returns:
- A
ZonedDateTimein UTC.
-