@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-10-28T09:54:00.189-05:00[America/Chicago]")
public class JavaTimeFormatter
extends java.lang.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 |
---|---|
java.lang.String |
formatOffsetDateTime(java.time.OffsetDateTime offsetDateTime)
Format the given
OffsetDateTime object into string. |
java.time.format.DateTimeFormatter |
getOffsetDateTimeFormatter()
Get the date format used to parse/format
OffsetDateTime parameters. |
java.time.OffsetDateTime |
parseOffsetDateTime(java.lang.String str)
Parse the given string into
OffsetDateTime object. |
void |
setOffsetDateTimeFormatter(java.time.format.DateTimeFormatter offsetDateTimeFormatter)
Set the date format used to parse/format
OffsetDateTime parameters. |
public java.time.format.DateTimeFormatter getOffsetDateTimeFormatter()
OffsetDateTime
parameters.public void setOffsetDateTimeFormatter(java.time.format.DateTimeFormatter offsetDateTimeFormatter)
OffsetDateTime
parameters.offsetDateTimeFormatter
- DateTimeFormatter
public java.time.OffsetDateTime parseOffsetDateTime(java.lang.String str)
OffsetDateTime
object.str
- StringOffsetDateTime
public java.lang.String formatOffsetDateTime(java.time.OffsetDateTime offsetDateTime)
OffsetDateTime
object into string.offsetDateTime
- OffsetDateTime
OffsetDateTime
in string formatCopyright © 2017-2022 Okta. All Rights Reserved.