Unix Lovers To Party Like It’s 1234567890

我算了下,此时间会发生在北京时间2009年2月14日 07:30:30

程序如下

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.

 

Cup – The Ultimate Companion for Every Beverage Lover Cups are a necessity in every household. They come in different shapes, sizes, and materials. From ceramic to glass, plastic to stainless steel, cups are available in a wide range of materials to cater to everyone's needs. Besides being a basic household item, cups hold special significance for beverage lovers. Whether it's a cup of coffee to start the day, a steaming cup of tea to relax in the evening, or a mug of hot chocolate to soothe the soul, cups are the ultimate companions for every beverage lover. Cups have evolved over time, and today, they come in various designs and styles to cater to different preferences. Some people prefer plain and straightforward cups, while others like cups with intricate designs and patterns. Some like cups with handles, while others prefer cups without handles. Whatever your preference may be, cups are an essential item in every household. Cups not only serve the purpose of holding beverages, but they also add to the overall aesthetic of a room. Fancy cups with beautiful designs and patterns can elevate the look of a room and add a touch of elegance to it. A cup of tea or coffee served in a beautiful cup can make the whole experience feel special. Cups are not just limited to hot beverages. They are also used for cold beverages such as juice, smoothies, and even cocktails. With the rise of the health and fitness industry, cups have become a popular item for people who like to carry their drinks on-the-go. Reusable cups made of materials such as stainless steel and glass are a popular choice among environmentally conscious individuals. In conclusion, cups are not just a basic household item; they are an integral part of every beverage lover's life. From holding our favorite drinks to adding aesthetic value to a room, cups serve multiple purposes. With the wide range of designs and materials available in the market, there is a cup for everyone. So, the next time you sip on your favorite beverage, take a moment to appreciate the humble cup that serves as its perfect companion.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值