类 DateUtil


  • public final class DateUtil
    extends Object
    DateUtil can transfer unix/java timestamps to Date object.
    作者:
    TheodoreHills
    • 方法详细资料

      • TimestampToDate

        public static Date TimestampToDate​(String strDate)
        Transfer timestamp to class java.util.Date
        参数:
        strDate - timestamp
        返回:
        The Date object if succeed, current date if failed
      • DateToString

        public static String DateToString​(Date date,
                                          String pattern)
        Transfer Date to String
        参数:
        date - Date object
        pattern - The pattern of the string
        返回:
        Converted String