我在stackoverflow上看到18位的时间戳转换,下面是一个人这么答复的
It looks to me like it's based at 1970 (the Unix epoch) instead of 1900, with 256000000 "ticks" per second.
I haven't seen such a format before, but it seems to check out - for example, using Noda Time:
class Test
{
static void Main()
{
Console.WriteLine(ToInstant(362087323333655740));
}
static Instant ToInstant(long value)
{
// We don't have to truncate to milliseconds, but it's simple for now...
long millis = value / 256000;
return Instant.FromMillisecondsSinceUnixEpoch(millis);
}
}
Output:
2014-10-27T09:53:26Z
... which would correspond to 2014-10-27T15:23:26 as the local time in India.
来自楼主了哈:::他这个也把处理的思想给出来了,我这个时间戳我实在是没有一点头绪,麻烦赵老师和各位看到的高手给指点一下,谢谢了