Unix weenies everywhere will be partying like it’s 1234567890 this Friday.

Crob 2009-02-13 09:20:50
我算了下,此时间会发生在北京时间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;
}
...全文
111 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
内容概要:本文聚焦于虚拟电厂在日前调度和日内调度两个时间尺度下的多时间尺度调度优化研究,旨在通过Matlab代码实现顶级SCI论文的复现。该研究针对电力系统中新能源出力的不确定性,构建了兼顾经济性与可靠性的优化调度模型,综合考虑风电、光伏、储能等多种能源资源的协调运行,采用先进的优化算法进行求解,有效提升了虚拟电厂的运行效率与对可再生能源的消纳能力。通过Matlab编程实现了完整的建模、求解与仿真分析流程,为相关领域的研究提供了可复用的技术框架与实践参考。; 适合人群:适用于从事电力系统、能源互联网、综合能源系统、优化调度等方向的科研人员,以及具备一定Matlab编程基础的研究生、工程师和技术开发者。; 使用场景及目标:① 学习和复现顶级SCI期刊中关于多时间尺度调度的先进建模方法与优化策略;② 掌握利用Matlab进行电力系统优化建模、求解器调用与仿真分析的核心技能;③ 深入研究虚拟电厂、微电网等新型电力系统的经济调度、协调控制与不确定性处理机制; 阅读建议:此资源以Matlab代码为核心载体,建议读者在学习过程中结合相关高水平学术论文,深入理解模型构建的理论依据与优化算法的设计逻辑,并亲自运行、调试与修改代码,以实现从理论到实践的贯通,从而获得最佳的学习与科研提升效果。

2,163

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧