views:

99

answers:

3

What is the last Unix time in decimal? I'm going to set it as the expiration date of cookies (using PHP). Is it possible to cause problem?

+4  A: 

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

Mark Baker
+1 for the answer that will be relevant in 2038. (Of course some software will break long before then eg. Poorly implemented mortgage calculators)
gnibbler
+4  A: 

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.

paxdiablo
+1 for the sensible answer
Mark Baker
A: 

2147483647, this is extra text

ilhan