@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-08-21T16:09:06.047-05:00[America/Chicago]") public class JavaTimeFormatter extends Object
OffsetDateTime class.
It's generated for java clients when AbstractJavaCodegen#dateLibrary specified as java8.| Constructor and Description |
|---|
JavaTimeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatOffsetDateTime(OffsetDateTime offsetDateTime)
Format the given
OffsetDateTime object into string. |
DateTimeFormatter |
getOffsetDateTimeFormatter()
Get the date format used to parse/format
OffsetDateTime parameters. |
OffsetDateTime |
parseOffsetDateTime(String str)
Parse the given string into
OffsetDateTime object. |
void |
setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter)
Set the date format used to parse/format
OffsetDateTime parameters. |
public DateTimeFormatter getOffsetDateTimeFormatter()
OffsetDateTime parameters.public void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter)
OffsetDateTime parameters.offsetDateTimeFormatter - DateTimeFormatterpublic OffsetDateTime parseOffsetDateTime(String str)
OffsetDateTime object.str - StringOffsetDateTimepublic String formatOffsetDateTime(OffsetDateTime offsetDateTime)
OffsetDateTime object into string.offsetDateTime - OffsetDateTimeOffsetDateTime in string formatCopyright © 2017–2023 Okta. All rights reserved.