Class TimeUtils

java.lang.Object
org.xrpl.xrpl4j.model.client.common.TimeUtils

public class TimeUtils extends Object
Utility class for converting between XRPL timestamps and other time formats.
  • Constructor Details

    • TimeUtils

      public TimeUtils()
  • Method Details

    • xrplTimeToZonedDateTime

      public static ZonedDateTime xrplTimeToZonedDateTime(com.google.common.primitives.UnsignedLong xrplTime)
      Convert an XRPL timestamp to a ZonedDateTime. The time zone of the ZonedDateTime will be UTC.
      Parameters:
      xrplTime - An UnsignedLong representing an XRPL timestamp.
      Returns:
      A ZonedDateTime in UTC.