OffsetDateTimeSerializer Class

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

public final class OffsetDateTimeSerializer

Serializes and deserializes a string

Method Summary

Modifier and Type Method and Description
static java.time.OffsetDateTime deserialize(String strVal)

Deserializes an ISO-8601 formatted date

static java.lang.String serialize(OffsetDateTime src)

Serializes the string

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

deserialize

public static OffsetDateTime deserialize(String strVal)

Deserializes an ISO-8601 formatted date

Parameters:

strVal - the string value

Returns:

the OffsetDateTime

Throws:

java.text.ParseException - the parse exception

serialize

public static String serialize(OffsetDateTime src)

Serializes the string

Parameters:

src - the source OffsetDateTime

Returns:

the string

Applies to