FreeBSD下能设定的最大年份是多少?
时间:2003-11-05
来源:互联网
我在4.9下能设定的最大年份为2037年,如果设2038年,就显示为“date: nonexistent time”,看来FreeBSD的时间设计也没有设的很大。
作者: lhmwzy 发布时间: 2003-11-05
很多系统都有这个时间限制! 一般都在100年内!
作者: rainren 发布时间: 2003-11-05
As with all Unix and Unix-like operating systems, time and dates in FreeBSD are represented internally as the number of seconds since the 1st of January 1970 (the Unix "epoch"). Currently, that figure is stored as a 32 bit integer, and will run out part way through 2038. By then we should (hopefully) be using a counter of 64 bits (or greater) which should be good until the end of the universe.
Note that the OS being Y2K compliant will not fix errant applications that are not Y2K compliant.
Note also that the OS expects to read the current date and time from the CMOS clock of your computer. Not all of these devices correctly handle the year 2000. You are advised to test each platform individually to ensure that your hardware clock behaves correctly when going from 1999 to 2000, and that it correctly interprets the year 2000 as a leap year.
从这段话上看,FreeBSD在2038年后会解决这个问题,用64位表示年份,两个现在则不会考虑。
Note that the OS being Y2K compliant will not fix errant applications that are not Y2K compliant.
Note also that the OS expects to read the current date and time from the CMOS clock of your computer. Not all of these devices correctly handle the year 2000. You are advised to test each platform individually to ensure that your hardware clock behaves correctly when going from 1999 to 2000, and that it correctly interprets the year 2000 as a leap year.
从这段话上看,FreeBSD在2038年后会解决这个问题,用64位表示年份,两个现在则不会考虑。
作者: lhmwzy 发布时间: 2003-11-05
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28