DateInfo 返回
日期信息
const (long) stamp
时间戳
const (int) year
年
const (int) month
月
const (int) day
日
const (int) week
星期
const (int) hour
时
const (int) min
分
const (int) sec
秒
const (int) mil
毫秒
getStamp()
获得时间戳
- 返回 : {long} 时间戳
getYear()
获得年
- 返回 : {int} 年
getMonth()
获得月
- 返回 : {int} 月
getDay()
获得日
- 返回 : {int} 日
getWeek()
获得星期
- 返回 : {int} 星期
getHour()
获得时
- 返回 : {int} 时
getMin()
获得分
- 返回 : {int} 分
getSec()
获得秒
- 返回 : {int} 秒
getMil()
获得毫秒
- 返回 : {int} 毫秒
json()
转换为JSON字符串
- 返回 : {string} JSON字符串