从 1900 年 1 月 1 日到 Unix 纪元开始的秒数 [英] Number of seconds from 1st January 1900 to start of Unix epoch

查看:67
本文介绍了从 1900 年 1 月 1 日到 Unix 纪元开始的秒数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要报告自 1900 年 1 月 1 日以来的时间(以秒为单位).我有自 Unix 纪元开始以来的秒数.

I need to report a time in seconds since 1st January 1900. I have the number of seconds since the start of the Unix epoch.

有人能指出我对 1/1/1900 和 1/1/1970 之间的秒数的明确参考吗?

Can anybody point me to a definitive reference to the number of seconds between 1/1/1900 and 1/1/1970?

推荐答案

根据 RFC 868 中的时间协议是 2208988800L.

According to the Time protocol in RFC 868 it is 2208988800L.

时间

时间是自 1900 年 1 月 1 日 00:00(午夜)以来的秒数GMT,例如时间 1 是格林威治标准时间 1900 年 1 月 1 日凌晨 12:00:01;这个基地将服役到 2036 年.

The time is the number of seconds since 00:00 (midnight) 1 January 1900 GMT, such that the time 1 is 12:00:01 am on 1 January 1900 GMT; this base will serve until the year 2036.

例如:

时间 2,208,988,800 对应于格林威治标准时间 1970 年 1 月 1 日 00:00,

the time 2,208,988,800 corresponds to 00:00 1 Jan 1970 GMT,

         2,398,291,200 corresponds to 00:00  1 Jan 1976 GMT,

         2,524,521,600 corresponds to 00:00  1 Jan 1980 GMT,

         2,629,584,000 corresponds to 00:00  1 May 1983 GMT,

    and -1,297,728,000 corresponds to 00:00 17 Nov 1858 GMT.

这篇关于从 1900 年 1 月 1 日到 Unix 纪元开始的秒数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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