接口 DateTimeUtilz


public interface DateTimeUtilz
Created by bean on 2020/7/9.
  • 方法详细资料

    • todayShortString

      static String todayShortString()
    • nowSeconds

      static Long nowSeconds()
    • todaySeconds

      static Long todaySeconds()
    • dateAdd

      static Long dateAdd(Long seconds, int day)
    • dateDiff

      static long dateDiff(Long toSeconds, Long fromSeconds)
    • monthAdd

      static Long monthAdd(Long seconds, int month)
    • yearAdd

      static Long yearAdd(Long seconds, int year)
    • format

      static String format(Long seconds, String format)
    • stringToDateLong

      static Long stringToDateLong(String str, String pattern)
    • getLastDayOfMonth

      static Date getLastDayOfMonth(Date date)
      获取当前月的最后一天的日期 格式为 yyyy-mm-dd 23:59:59
      参数:
      date -
      返回:
    • fromZonedISO

      static Long fromZonedISO(String isoDate)