@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") 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
- DateTimeFormatter
public OffsetDateTime parseOffsetDateTime(String str)
OffsetDateTime
object.str
- StringOffsetDateTime
public String formatOffsetDateTime(OffsetDateTime offsetDateTime)
OffsetDateTime
object into string.offsetDateTime
- OffsetDateTime
OffsetDateTime
in string formatCopyright © 2017–2023 Okta. All rights reserved.