类 DateTimeFormatters

java.lang.Object
cn.taketoday.web.config.format.DateTimeFormatters

public class DateTimeFormatters extends Object
Formatters for dates, times, and date-times.
从以下版本开始:
4.0 2022/4/15 12:59
作者:
Andy Wilkinson, Gaurav Pareek, Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • DateTimeFormatters

      public DateTimeFormatters()
  • 方法详细资料

    • dateFormat

      public DateTimeFormatters dateFormat(String pattern)
      Configures the date format using the given pattern.
      参数:
      pattern - the pattern for formatting dates
      返回:
      this for chained method invocation
    • timeFormat

      public DateTimeFormatters timeFormat(String pattern)
      Configures the time format using the given pattern.
      参数:
      pattern - the pattern for formatting times
      返回:
      this for chained method invocation
    • dateTimeFormat

      public DateTimeFormatters dateTimeFormat(String pattern)
      Configures the date-time format using the given pattern.
      参数:
      pattern - the pattern for formatting date-times
      返回:
      this for chained method invocation
    • getDateFormatter

      DateTimeFormatter getDateFormatter()
    • getDatePattern

      String getDatePattern()
    • getTimeFormatter

      DateTimeFormatter getTimeFormatter()
    • getDateTimeFormatter

      DateTimeFormatter getDateTimeFormatter()
    • isCustomized

      boolean isCustomized()
    • formatter

      private static DateTimeFormatter formatter(String pattern)
    • isIso

      private static boolean isIso(String pattern)
    • isIsoOffset

      private static boolean isIsoOffset(String pattern)