public.javadoc.org.spincast.plugins.dateformatter.DateFormatter.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
DateFormatter (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.dateformatter
Interface DateFormatter
-
- All Known Implementing Classes:
- DateFormatterDefault
public interface DateFormatter
Date formatter builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
DateFormatter
datePattern(DatePattern datePattern)
The pattern to use for the *date* part (without
time).
DateFormatter
datePattern(String customPattern)
The custom pattern to use for the *date* part (without
time).
String
format()
Format!
DateFormatter
locale(Locale locale)
The locale to use.
DateFormatter
parts(DateParts dateParts)
Which part(s) of ther date to format and
output?
DateFormatter
separator(String separator)
The separator string to use between the date
part and the time part.
DateFormatter
timePattern(DatePattern timePattern)
The pattern to use for the *time* part (without
the date).
DateFormatter
timePattern(String customPattern)
The custom pattern to use for the *time* part (without
the date).
DateFormatter
timeZone(TimeZone timeZone)
The timeZone to use.
-
-
Method Detail
-
locale
DateFormatter locale(Locale locale)
The locale to use.
Defaults to the one provided by the
LocaleResolver
.
-
timeZone
DateFormatter timeZone(TimeZone timeZone)
The timeZone to use.
-
parts
DateFormatter parts(DateParts dateParts)
Which part(s) of ther date to format and
output?
-
datePattern
DateFormatter datePattern(DatePattern datePattern)
The pattern to use for the *date* part (without
time).
-
datePattern
DateFormatter datePattern(String customPattern)
The custom pattern to use for the *date* part (without
time).
-
timePattern
DateFormatter timePattern(DatePattern timePattern)
The pattern to use for the *time* part (without
the date).
-
timePattern
DateFormatter timePattern(String customPattern)
The custom pattern to use for the *time* part (without
the date).
-
separator
DateFormatter separator(String separator)
The separator string to use between the date
part and the time part.
Defaults to " - ".
-
format
String format()
Format!
Copyright © 2019. All rights reserved.