public class DateTime extends Date
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
getSecondTime()
获取精确到秒的时间戳
|
static DateTime |
parse(Date date)
转换JDK date为 DateTime
|
Date |
toDate() |
String |
toMsStr() |
String |
toString() |
String |
toString(String format) |
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTCpublic DateTime()
public DateTime(Date date)
date - 日期public DateTime(long timeMillis)
timeMillis - 日期毫秒数Copyright © 2019. All rights reserved.