mailunion
V2EX  ›  问与答

时间戳为何从 1970 年 1 月 1 日 00 时 00 分 00 秒开始呢?

  •  
  •   mailunion · May 14, 2014 · 5707 views
    This topic created in 4394 days ago, the information mentioned may be changed or developed.
    4 replies    2014-05-14 21:39:59 +08:00
    kingwkb
        1
    kingwkb  
       May 14, 2014
    因为 unix 中 32 位无符号整数能表式的范围有限,就现在来说在32位系统的机器上面 unixtime 只能到2038年,如果从0年开始,在设计之初就能使用了,为什么是1970,因为这个设计时候是 70 年代
    georgetso
        2
    georgetso  
       May 14, 2014
    because the big bang starts there
    superbear
        3
    superbear  
       May 14, 2014
    birthday!
    nicai000
        4
    nicai000  
       May 14, 2014
    @kingwkb 现代的32位系统早就修了这个了

    另外, 这么点儿事儿就不能Google下, 用得着发帖问?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1178 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:46 · PVG 01:46 · LAX 10:46 · JFK 13:46
    ♥ Do have faith in what you're doing.