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, Link to comment https://forums.phpfreaks.com/topic/26856-calendar/ 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 Link to comment https://forums.phpfreaks.com/topic/26856-calendar/#findComment-122818 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. Link to comment https://forums.phpfreaks.com/topic/26856-calendar/#findComment-122822 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 Link to comment https://forums.phpfreaks.com/topic/26856-calendar/#findComment-122828 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 Link to comment https://forums.phpfreaks.com/topic/26856-calendar/#findComment-122841 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.