Kactoos

kactoos-jvm / nnl.rocks.kactoos.time / DateAsText / <init>

<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.

Parameters

milliseconds - Milliseconds to format.DateAsText(milliseconds: Long, format: String)

Formats the milliseconds using the format and the default locale.

Parameters

milliseconds - Milliseconds to format.

format - The format to use.DateAsText(milliseconds: Long, format: String, locale: Locale)

Formats the milliseconds as date using the format and the locale.

Parameters

milliseconds - Milliseconds to format as date.

format - The format to use.

locale - The locale to use for the format.DateAsText(date: Date)

Formats the date with ISO format using the system zone.

Parameters

date - The date to format.DateAsText(date: Date, format: String)

Formats the date with to format using the default locale and the system zone.

Parameters

date - The date to format.

format - The format to use.DateAsText(date: Date, format: String, locale: Locale)

Formats the date using the format and locale using the system default zone.

Parameters

date - The date to format.

format - The format to use.

locale - The locale to use.DateAsText(date: TemporalAccessor, format: String, locale: Locale)

Formats the date using the provided format string using the provided locale.

Parameters

date - The date to format.

format - The format string to use.

locale - The locale to use.