DateTimeRfc1123 Class
- java.
lang. Object - com.
azure. core. util. DateTimeRfc1123
- com.
public final class DateTimeRfc1123
Wrapper over java.time.OffsetDateTime used for specifying RFC1123 format during serialization and deserialization.
Constructor Summary
Constructor | Description |
---|---|
DateTimeRfc1123(String formattedString) |
Creates a new Date |
DateTimeRfc1123(OffsetDateTime dateTime) |
Creates a new Date |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | equals(Object obj) |
Offset |
getDateTime()
Returns the underlying Date |
int | hashCode() |
static String |
toRfc1123String(OffsetDateTime dateTime)
Convert the dateTime to date time string in RFC1123 format. |
String | toString() |
Methods inherited from java.lang.Object
Constructor Details
DateTimeRfc1123
public DateTimeRfc1123(String formattedString)
Creates a new DateTimeRfc1123 object with the specified DateTime.
Parameters:
DateTimeRfc1123
public DateTimeRfc1123(OffsetDateTime dateTime)
Creates a new DateTimeRfc1123 object with the specified DateTime.
Parameters:
Method Details
equals
public boolean equals(Object obj)
Overrides:
DateTimeRfc1123.equals(Object obj)Parameters:
getDateTime
public OffsetDateTime getDateTime()
Returns the underlying DateTime.
Returns:
hashCode
public int hashCode()
Overrides:
DateTimeRfc1123.hashCode()toRfc1123String
public static String toRfc1123String(OffsetDateTime dateTime)
Convert the dateTime to date time string in RFC1123 format.
Parameters:
Returns:
toString
public String toString()
Overrides:
DateTimeRfc1123.toString()Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for