开发者

What is the last Unix time?

开发者 https://www.devze.com 2023-01-05 16:37 出处:网络
What is the last Un开发者_开发技巧ix time in decimal? I\'m going to set it as the expiration date of cookies (using PHP). Is it possible to cause problem?Sunday, December 4, 292,277,026,596 AD (on 64-

What is the last Un开发者_开发技巧ix time in decimal? I'm going to set it as the expiration date of cookies (using PHP). Is it possible to cause problem?


Sunday, December 4, 292,277,026,596 AD (on 64-bit systems)


For a 32-bit time_t value, you will overflow in mid to late January 2038. Specifically about 3:14 AM UTC on January 19 (actually somewhere between 3:14 and 3:15 but that should be close enough for you).

The maximum value is 231-1 or 2,147,483,647.


2147483647

0

精彩评论

暂无评论...
验证码 换一张
取 消