Class OffsetDateTimeSerializer

java.lang.Object
com.microsoft.graph.serializer.OffsetDateTimeSerializer

public final class OffsetDateTimeSerializer extends Object
Serializes and deserializes a string
  • Method Details

    • deserialize

      @Nullable public static OffsetDateTime deserialize(@Nonnull String strVal) throws ParseException
      Deserializes an ISO-8601 formatted date
      Parameters:
      strVal - the string value
      Returns:
      the OffsetDateTime
      Throws:
      ParseException - the parse exception
    • serialize

      @Nonnull public static String serialize(@Nonnull OffsetDateTime src)
      Serializes the string
      Parameters:
      src - the source OffsetDateTime
      Returns:
      the string