类 DateTimeZoneUtil

java.lang.Object
com.ijpay.core.utils.DateTimeZoneUtil
所有已实现的接口:
Serializable

public class DateTimeZoneUtil extends Object implements Serializable
时间工具类

依赖 xk-time

作者:
YunGouOS
另请参阅:
  • 构造器详细资料

    • DateTimeZoneUtil

      public DateTimeZoneUtil()
  • 方法详细资料

    • dateToTimeZone

      public static String dateToTimeZone(long time) throws Exception
      时间转 TimeZone

      2020-08-17T16:46:37+08:00

      参数:
      time - 时间戳
      返回:
      String TimeZone 格式时间字符串
      抛出:
      Exception - 异常信息
    • dateToTimeZone

      public static String dateToTimeZone(Date date) throws Exception
      时间转 TimeZone

      2020-08-17T16:46:37+08:00

      参数:
      date - Date
      返回:
      String TimeZone 格式时间字符串
      抛出:
      Exception - 异常信息
    • timeZoneDateToStr

      public static String timeZoneDateToStr(String str) throws Exception
      TimeZone 时间转标准时间

      2020-08-17T16:46:37+08:00 to 2020-08-17 16:46:37

      参数:
      str - TimeZone格式时间字符串
      返回:
      String 标准时间字符串
      抛出:
      Exception - 异常信息
    • main

      public static void main(String[] args) throws Exception
      抛出:
      Exception