1、时间戳转日期时间
假设A2单元格内容为13位的时间戳,再选中B2单元格,在公式框中输入
=TEXT((A2/1000+8*3600)/86400+70*365+19,"yyyy/mm/dd hh:mm:ss.000")
2、日期时间转时间戳
= INT((A2-70*365-19)*86400-8*3600)
参考:
https://zhuanlan.zhihu.com/p/397973144
假设A2单元格内容为13位的时间戳,再选中B2单元格,在公式框中输入
=TEXT((A2/1000+8*3600)/86400+70*365+19,"yyyy/mm/dd hh:mm:ss.000")
= INT((A2-70*365-19)*86400-8*3600)
参考:
https://zhuanlan.zhihu.com/p/397973144