将 64 位时间戳转换为可读值 [英] Convert 64bit timestamp to a readable value

查看:42
本文介绍了将 64 位时间戳转换为可读值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的数据集中,我有两个时间戳列.第一个是自应用程序启动以来的微秒 - 例如,1400805323.第二个被描述为 64 位时间戳,我希望它可以指示时钟时间,使用 1901 年 1 月 1 日开始的秒数的 NTP 格式.

In my dataset I have two timestamp columns. The first is microseconds since application was started - e.g., 1400805323. The second is described as 64bit timestamp which I'm hoping will indicate clock time, using NTP format of number of seconds from 1/1/1901.

64 位"时间戳示例:129518309081725000129518309082059000129518309082393000129518309082727000129518309083060000129518309083394000129518309083727000

Example of '64bit' timestamps: 129518309081725000 129518309082059000 129518309082393000 129518309082727000 129518309083060000 129518309083394000 129518309083727000

是否有任何 matlab/python 代码可以将其转换为可读格式?

Is there any matlab/python code that could convert this into a readable format?

非常感谢任何帮助,

史蒂夫

推荐答案

假设这些值是在 2011 年 6 月 6 日今天生成的,这些值看起来像是自 1601 年 1 月 1 日以来的 100 纳秒间隔数.这就是 Windows NT存储 FILETIME.有关this的更集中信息,请阅读此博客Raymond Chen 的职位.这些文章还展示了如何将其转换为其他任何内容

Assuming that these values were generated today, June 6th 2011, these values look like number of 100-nanosecond intervals since Jan 1st year 1601. This is how Windows NT stores FILETIME. For more concentrated info on this read this blog post of Raymond Chen. These articles also show how to convert it to anything else

这篇关于将 64 位时间戳转换为可读值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆