Lamez Posted January 14, 2010 Share Posted January 14, 2010 I was bored this morning, I started to mess around on the website, then I found this: (The image was too big, here is a direct link) http://uploads.lamezz.com/what.jpg Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/ Share on other sites More sharing options...
Maq Posted January 14, 2010 Share Posted January 14, 2010 I assume you're talking about the "Date Registered" timestamp. The timestamp was probably manually changed in the DB. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-994923 Share on other sites More sharing options...
Lamez Posted January 14, 2010 Author Share Posted January 14, 2010 I am talking about that. I found that very strange. I wonder if is a easter egg of sorts? Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-994952 Share on other sites More sharing options...
Daniel0 Posted January 14, 2010 Share Posted January 14, 2010 No. It's just Tom who was messing with stuff. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-994984 Share on other sites More sharing options...
Lamez Posted January 14, 2010 Author Share Posted January 14, 2010 Well dang it, lets just say its an easter egg. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-994987 Share on other sites More sharing options...
zq29 Posted January 14, 2010 Share Posted January 14, 2010 Yeah, I think CV is recorded as being registered on the epoch too. Spooky! Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995001 Share on other sites More sharing options...
Lamez Posted January 14, 2010 Author Share Posted January 14, 2010 Yep CV is. So why was the roll-over from '69 to '70 a big deal? Was it like from '99 to '00? Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995005 Share on other sites More sharing options...
waynew Posted January 14, 2010 Share Posted January 14, 2010 It should be clear to you now that PHPFreaks existed before the Internet was invented. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995119 Share on other sites More sharing options...
corbin Posted January 15, 2010 Share Posted January 15, 2010 Yep CV is. So why was the roll-over from '69 to '70 a big deal? Was it like from '99 to '00? Uhhhh? What? That's probably just a timestamp of 0 adjusted to your timezone. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995341 Share on other sites More sharing options...
Lamez Posted January 15, 2010 Author Share Posted January 15, 2010 I am talking about Y2K. What was the big deal in 1969? Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995390 Share on other sites More sharing options...
Daniel0 Posted January 15, 2010 Share Posted January 15, 2010 32-bit integers have limited range. You can point to exactly 2^32 different timestamps. When you go too far into the future or the past you're fucked. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995399 Share on other sites More sharing options...
oni-kun Posted January 15, 2010 Share Posted January 15, 2010 32-bit integers have limited range. You can point to exactly 2^32 different timestamps. When you go too far into the future or the past you're fucked. A signed integer, 2147483647 will be the W2K38 bug. Lets leave the problem for our children to deal with. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995416 Share on other sites More sharing options...
zq29 Posted January 15, 2010 Share Posted January 15, 2010 A signed integer, 2147483647 will be the W2K38 bug. Lets leave the problem for our children to deal with. Speak for yourself, I hope to be alive still... Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995466 Share on other sites More sharing options...
Daniel0 Posted January 15, 2010 Share Posted January 15, 2010 32-bit integers have limited range. You can point to exactly 2^32 different timestamps. When you go too far into the future or the past you're fucked. A signed integer, 2147483647 will be the W2K38 bug. Lets leave the problem for our children to deal with. Yes, but what happens when you represent the time as the number of seconds after after the Unix epoch using a signed integer and then want to represent '69? That is the problem with representing '69. Like you cannot exceed the upper bound, you also cannot go below the lower bound. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995497 Share on other sites More sharing options...
Lamez Posted January 15, 2010 Author Share Posted January 15, 2010 I notice you said integer. You can use a long integer? http://en.wikipedia.org/wiki/Long_integer Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995574 Share on other sites More sharing options...
oni-kun Posted January 15, 2010 Share Posted January 15, 2010 @Lamez, a longint is an int in range, is the same. As I was bored, I spent the night writing the epoch that should be! function zeroday_time($args=false) { if ($args==true){$case = $args;} else {$case = date('d/m/Y');} $map = array(31,28,31,30,31,30,31,31,30,31,30,31); $cur = explode('/', $case); $days = $cur[0]*24*60*60; $months = $cur[1]*($map[$cur[1]-1])*24*60*60; $years = $cur[2]*365*24*60*60; $result = (float)$days + $months + $years; return (float)$result; } $epoch = zeroday_time(); //62129203200 $date = zeroday_time('31/12/1969'); $diff = abs(floor(($date-$epoch)/365/24/60/60)); //Over 40 years!? echo "It has been $date (~{$diff}) years since December 31, 1969"; Surprised I got it right, calculates the offset in seconds based on January 1, 0000. Includes using doubles (+-1.79769e+308? signed, opposed to +-2147483647 in int). Screw limits, this (theoretically) will bug out when the sun explodes. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995599 Share on other sites More sharing options...
Lamez Posted January 15, 2010 Author Share Posted January 15, 2010 That is the best thing I have ever seen. Lets hope we get quantum computing down before the sun explodes. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995604 Share on other sites More sharing options...
nrg_alpha Posted January 15, 2010 Share Posted January 15, 2010 $today = new DateTime('today'); $timeDiff = $today->diff(new DateTime('1969-12-31')); echo "It has been $timeDiff->y years, and $timeDiff->d days since December 31st, 1969"; Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995657 Share on other sites More sharing options...
oni-kun Posted January 16, 2010 Share Posted January 16, 2010 $today = new DateTime('today'); $timeDiff = $today->diff(new DateTime('1969-12-31')); echo "It has been $timeDiff->y years, and $timeDiff->d days since December 31st, 1969"; $today = new DateTime('today'); $timeDiff = $today->diff(new DateTime('0001-1-1')); echo "It has been $timeDiff->y years, and $timeDiff->d days since January 1st, 0001"; It has been 9 years, and 15 days since January 1st, 0001 I've been alive since a grand holy event! Your code relies too much on the said bugs, my epoch was to overcome that. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995962 Share on other sites More sharing options...
nrg_alpha Posted January 16, 2010 Share Posted January 16, 2010 And all along here I thought you just wanted to know how much time passed between now and December 31st, 1969. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-995994 Share on other sites More sharing options...
oni-kun Posted January 16, 2010 Share Posted January 16, 2010 And all along here I thought you just wanted to know how much time passed between now and December 31st, 1969. Yeah time, you can assume it's not too hard to calculate the difference, I mean it's 2010 - 40, but what I meant was to convert a timestamp to before epoch, in a fashion like the unix time stamp could not! Btw, where is your massive collection of emoticons? You (and the other gurus) seem to use them alot, is it in their arsenal? :-\ Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-996029 Share on other sites More sharing options...
nrg_alpha Posted January 16, 2010 Share Posted January 16, 2010 Btw, where is your massive collection of emoticons? You (and the other gurus) seem to use them alot, is it in their arsenal? :-\ Oh, to have access, you need to enter a secret password in the form of a query string for that -or-, you can simply hit the [more] link found beneath the initial emoticons listed in the preview section. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-996135 Share on other sites More sharing options...
Maq Posted January 16, 2010 Share Posted January 16, 2010 Btw, where is your massive collection of emoticons? You (and the other gurus) seem to use them alot, is it in their arsenal? :-\ Oh, to have access, you need to enter a secret password in the form of a query string for that -or-, you can simply hit the [more] link found beneath the initial emoticons listed in the preview section. Alternatively, you can unlock them using the secret decoder ring Guru's receive in the mail. Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-996221 Share on other sites More sharing options...
Lamez Posted January 17, 2010 Author Share Posted January 17, 2010 :'( :-\ :suicide: Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-996349 Share on other sites More sharing options...
oni-kun Posted January 17, 2010 Share Posted January 17, 2010 :'( :-\ :suicide: LOL.. That made me laugh. I just never noticed the link, and only noticed gurus use it (PFMisBisMad likes in paticular) Quote Link to comment https://forums.phpfreaks.com/topic/188455-very-strange/#findComment-996450 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.