类 DateTimeFormat

java.lang.Object
com.yuzhyn.azylee.core.datas.datetimes.DateTimeFormat

public class DateTimeFormat extends Object
日期时间格式化工具
版本:
1.0

#date 2020年11月24日

作者:
yuzhengyang
  • 构造器详细资料

    • DateTimeFormat

      public DateTimeFormat()
  • 方法详细资料

    • toStr

      public static String toStr(Date date, DateTimeFormatPattern pattern)
      按照指定格式格式化日期时间
      参数:
      date - 日期
      pattern - 格式
      返回:
      返回 返回 返回
    • toStr

      public static String toStr(Date date)
      按照默认格式格式化日期时间
      参数:
      date - 日期
      返回:
      返回 返回 返回
    • toStr

      public static String toStr(LocalDateTime dateTime, DateTimeFormatPattern pattern)
      按照指定格式格式化日期时间
      参数:
      dateTime - 日期时间
      pattern - 格式
      返回:
      返回 返回 返回
    • toStr

      public static String toStr(LocalDate dateTime, DateTimeFormatPattern pattern)
    • toStr

      public static String toStr(LocalDateTime dateTime)
      按照默认格式格式化日期时间
      参数:
      dateTime - 日期时间
      返回:
      返回 返回 返回
    • toStr

      public static String toStr(LocalDate dateTime)
    • main

      public static void main(String[] args)