kactoos-jvm / nnl.rocks.kactoos.time / DateAsText
class DateAsText : Text
Formatter for date instances. Formats the date using the provided formatter.
formatted - The formatted date.
Since 0.4
| Name | Summary |
|---|---|
| <init> | DateAsText(date: TemporalAccessor, formatter: DateTimeFormatter)DateAsText(date: TemporalAccessor)DateAsText()DateAsText(date: TemporalAccessor, format: String)DateAsText(milliseconds: Long)Formats the milliseconds using the ISO format. DateAsText(milliseconds: Long, format: String)Formats the milliseconds using the format and the default locale. DateAsText(milliseconds: Long, format: String, locale: Locale)Formats the milliseconds as date using the format and the locale. DateAsText(date: Date)Formats the date with ISO format using the system zone. DateAsText(date: Date, format: String)Formats the date with to format using the default locale and the system zone. DateAsText(date: Date, format: String, locale: Locale)Formats the date using the format and locale using the system default zone. DateAsText(date: TemporalAccessor, format: String, locale: Locale)Formats the date using the provided format string using the provided locale. |
| Name | Summary |
|---|---|
| asString | fun asString(): StringConvert it to the string. |