Unix Lovers To ***** Like It’s 1234567890
时间:2009-02-13
来源:互联网
我算了下,此时间会发生在北京时间2009年2月14日 07:30:30
Unix weenies everywhere will be partying like it’s 1234567890 this Friday.
That’s because, at precisely 3:31:30 p.m. Pacific time on February 13, 2009, the 10-digit “epoch time” clock used by most Unix computers will display all ten decimal digits in sequence. (That’s 6:31:30 Eastern, or 23:31:30 UTC.)
Unlike time systems intended for humans, Unix time simply counts the number of seconds since midnight UTC on January 1, 1970. It’s a convenient way for computers to measure elapsed time, provided the start date wasn’t before 1970. On Friday, the number of seconds will hit 1,234,567,890. Celebrations are planned in San Francisco, Vancouver, Seattle, Los Angeles and about 10 other locations worldwide, so don’t be surprised if it takes the guys in IT a little longer to respond to your calls tomorrow afternoon, or if the Gadget Lab crew is hard to find.
We couldn’t find any watches that display Unix time, but the above desk clock from ThinkGeek, will do the trick. It will also display the time in binary, octal, hexadecimal or Roman formats. Mark your calendars: It’s only 11 and a half years until XX:XX:XX X/XX/XX day.
简单的计算程序
int main()
{
time_t now;
time(&now);
long diff = 1234567890 - now;
cout << "current: " << now << endl;
cout << "before 1234567890 we have:" << endl;
cout << diff << " secs"<< endl;
cout << diff / 60.0 << " minutes" << endl;
cout << diff / 3600.0 << " hours" << endl;
cout << endl;
long lnow = 1234567890;
tm* tnow;
tnow = localtime(&lnow);
cout << tnow->tm_year + 1900 << "-" << tnow->tm_mon + 1 << "-" << tnow->tm_mday << " " << tnow->tm_hour << ":" << tnow->tm_min << ":" << tnow->tm_sec;
return 0;
}
Unix weenies everywhere will be partying like it’s 1234567890 this Friday.
That’s because, at precisely 3:31:30 p.m. Pacific time on February 13, 2009, the 10-digit “epoch time” clock used by most Unix computers will display all ten decimal digits in sequence. (That’s 6:31:30 Eastern, or 23:31:30 UTC.)
Unlike time systems intended for humans, Unix time simply counts the number of seconds since midnight UTC on January 1, 1970. It’s a convenient way for computers to measure elapsed time, provided the start date wasn’t before 1970. On Friday, the number of seconds will hit 1,234,567,890. Celebrations are planned in San Francisco, Vancouver, Seattle, Los Angeles and about 10 other locations worldwide, so don’t be surprised if it takes the guys in IT a little longer to respond to your calls tomorrow afternoon, or if the Gadget Lab crew is hard to find.
We couldn’t find any watches that display Unix time, but the above desk clock from ThinkGeek, will do the trick. It will also display the time in binary, octal, hexadecimal or Roman formats. Mark your calendars: It’s only 11 and a half years until XX:XX:XX X/XX/XX day.
简单的计算程序
int main()
{
time_t now;
time(&now);
long diff = 1234567890 - now;
cout << "current: " << now << endl;
cout << "before 1234567890 we have:" << endl;
cout << diff << " secs"<< endl;
cout << diff / 60.0 << " minutes" << endl;
cout << diff / 3600.0 << " hours" << endl;
cout << endl;
long lnow = 1234567890;
tm* tnow;
tnow = localtime(&lnow);
cout << tnow->tm_year + 1900 << "-" << tnow->tm_mon + 1 << "-" << tnow->tm_mday << " " << tnow->tm_hour << ":" << tnow->tm_min << ":" << tnow->tm_sec;
return 0;
}
作者: crob 发布时间: 2009-02-13
为什么party被*了, 不解
作者: crob 发布时间: 2009-02-13
楼主还真有钻研精神,还专门写了程序。
date -d @1234567890 不是更快。
date -d @1234567890 不是更快。
作者: oceanboo 发布时间: 2009-02-13
呵呵,Linux只能算会用,Gentoo年龄不到半年,C++年龄N年了,所以你的方法不会,受教了。
作者: crob 发布时间: 2009-02-13
引用:
作者: oceanboo
楼主还真有钻研精神,还专门写了程序。
date -d @1234567890 不是更快。 |
作者: mathfeel 发布时间: 2009-02-14
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28