|
|

楼主 |
发表于 2019-11-14 11:54:57
|
显示全部楼层
湖北省武汉市
自己找到了,(值-11644473600000000)/1000000 可以得到一个10位的时间戳
- // Chromium stores its timestamps in sqlite on the Mac using the Windows Gregorian epoch
- // https://github.com/adobe/chromium/blob/master/base/time_mac.cc#L29
- // This converts it to a UNIX timestamp
- func convertChromiumTimestampToUnix(timestamp string) time.Time {
- r, err := strconv.Atoi(timestamp)
- if nil != err {
- panic(err)
- }
- if r == 0 {
- return time.Unix(int64(0), int64(0))
- }
- return time.Unix(int64((r-11644473600000000)/1000000), int64(0))
- }
复制代码 |
|