@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-12T14:56:03.264844-05:00[America/New_York]") 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 format