public final class OffsetDateTimeAsText extends Object implements Text
OffsetDateTime
instances.Text.NoNulls
Constructor and Description |
---|
OffsetDateTimeAsText(OffsetDateTime date)
Formats date using ISO date time format.
|
OffsetDateTimeAsText(OffsetDateTime date,
DateTimeFormatter formatter)
Formats the date using the provided formatter.
|
OffsetDateTimeAsText(OffsetDateTime date,
String format)
Formats date using provided date time format string using default locale.
|
OffsetDateTimeAsText(OffsetDateTime date,
String format,
Locale locale)
Formats the date using the provided format string using the provided
locale.
|
public OffsetDateTimeAsText(OffsetDateTime date)
date
- The date to format.public OffsetDateTimeAsText(OffsetDateTime date, String format)
date
- The date to format.format
- The format to use.public OffsetDateTimeAsText(OffsetDateTime date, String format, Locale locale)
date
- The date to format.format
- The format string to use.locale
- The locale to use.public OffsetDateTimeAsText(OffsetDateTime date, DateTimeFormatter formatter)
date
- The date to format.formatter
- The formatter to use.Copyright © 2017–2018 Cactoos. All rights reserved.