类 DateTimeFormatters
java.lang.Object
cn.taketoday.web.config.format.DateTimeFormatters
Formatters for dates, times, and date-times.- 从以下版本开始:
- 4.0 2022/4/15 12:59
- 作者:
- Andy Wilkinson, Gaurav Pareek, Harry Yang
-
字段概要
字段修饰符和类型字段说明private DateTimeFormatterprivate Stringprivate DateTimeFormatterprivate DateTimeFormatter -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明dateFormat(String pattern) Configures the date format using the givenpattern.dateTimeFormat(String pattern) Configures the date-time format using the givenpattern.private static DateTimeFormatter(专用程序包) DateTimeFormatter(专用程序包) String(专用程序包) DateTimeFormatter(专用程序包) DateTimeFormatter(专用程序包) booleanprivate static booleanprivate static booleanisIsoOffset(String pattern) timeFormat(String pattern) Configures the time format using the givenpattern.
-
字段详细资料
-
dateFormatter
-
datePattern
-
timeFormatter
-
dateTimeFormatter
-
-
构造器详细资料
-
DateTimeFormatters
public DateTimeFormatters()
-
-
方法详细资料
-
dateFormat
Configures the date format using the givenpattern.- 参数:
pattern- the pattern for formatting dates- 返回:
thisfor chained method invocation
-
timeFormat
Configures the time format using the givenpattern.- 参数:
pattern- the pattern for formatting times- 返回:
thisfor chained method invocation
-
dateTimeFormat
Configures the date-time format using the givenpattern.- 参数:
pattern- the pattern for formatting date-times- 返回:
thisfor chained method invocation
-
getDateFormatter
DateTimeFormatter getDateFormatter() -
getDatePattern
String getDatePattern() -
getTimeFormatter
DateTimeFormatter getTimeFormatter() -
getDateTimeFormatter
DateTimeFormatter getDateTimeFormatter() -
isCustomized
boolean isCustomized() -
formatter
-
isIso
-
isIsoOffset
-