Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试确定一个数学公式来转换 UTC 中的纪元时间戳并获取当天的当前时间。
例如,我有这个以毫秒为单位的时间戳1528567668862,即:
1528567668862
GMT: Saturday, June 9, 2018 6:07:48.862 PM Your time zone: Saturday, June 9, 2018 11:07:48.862 AM GMT-07:00 DST
我希望它会回报我6:07 PM。
6:07 PM