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.
添加闰秒以校正地球自转的变化。然而,与闰年不同,这些不会定期发生(因为它不是由于系统错误,如闰年)。
使用 unix 时间戳的系统如何处理闰秒?闰秒是否被硬编码到实现时间戳的编程语言的更新中?
更新:看起来Unix 时间戳不处理闰秒
它是在时间服务器中处理的,而不是编程语言本身。如果一秒丢失,时间服务器在一天结束时报告第 61 秒(值为 60);如果获得,则 UTC 秒数变为 56、57、58、00、01。