Class DateTimeRfc1123

java.lang.Object
com.azure.core.util.DateTimeRfc1123

public final class DateTimeRfc1123 extends Object
Wrapper over java.time.OffsetDateTime used for specifying RFC1123 format during serialization and deserialization.
  • Constructor Details

    • DateTimeRfc1123

      public DateTimeRfc1123(OffsetDateTime dateTime)
      Creates a new DateTimeRfc1123 object with the specified DateTime.
      Parameters:
      dateTime - The DateTime object to wrap.
    • DateTimeRfc1123

      public DateTimeRfc1123(String formattedString)
      Creates a new DateTimeRfc1123 object with the specified DateTime.
      Parameters:
      formattedString - The datetime string in RFC1123 format
  • Method Details