Mehdi Posted November 10, 2006 Share Posted November 10, 2006 Hello,My calendar program shows only the date from 1902 until 2037. Could you say me why the program cannot shows the calendar of the years after 2037?Thanks, Quote Link to comment Share on other sites More sharing options...
Barand Posted November 10, 2006 Share Posted November 10, 2006 If you are relying on unix timestamp values then that is the limit that dates will extend to Quote Link to comment Share on other sites More sharing options...
Mehdi Posted November 10, 2006 Author Share Posted November 10, 2006 Yes I work with Linux. Thanks for the guide. Quote Link to comment Share on other sites More sharing options...
blear Posted November 10, 2006 Share Posted November 10, 2006 There are approximately 4,260,276,000 seconds between 1902 and 2037. The highest integer value able to be represented by a 32bit variable is roughly the same (and assuming no negative numbers).This means that the only dates that can be represented are years 1902-2037 Quote Link to comment Share on other sites More sharing options...
Barand Posted November 10, 2006 Share Posted November 10, 2006 [code]<?php$t = 0;echo 'Start of the unix epoch: <B>' . date ('Y-m-d', $t). '</B><br>';$t = 2147483647;echo 'End of Unix epoch and beginning of chaos: <B>' . date ('Y-m-d', $t) . '</B><br>';?>[/code]I'm planning on retiring well before then Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.