Broncolanche
Sujuk Level: 62
    Posts: 415/1008 EXP: 1930279 For next: 54418
Since: 2.6.03 From: Littleton, CO
Since last post: 641 days Last activity: 577 days
| #1 Posted on 18.11.04 1413.27 Reposted on: 18.11.11 1418.10 | My profile says I'm 25, but my birthday isn't till tomorrow. Any idea what's up?
(edited by Broncolanche on 18.11.04 1450) | Promote this thread! |  | Guru Zim
SQL Dejection Administrator Level: 135
    Posts: 2964/5878 EXP: 29129001 For next: 206080
Since: 9.12.01 From: Bay City, OR
Since last post: 3 days Last activity: 13 hours
| AIM: | |
| | |
| #2 Posted on 18.11.04 1600.21 Reposted on: 18.11.11 1603.04 | | The birthday code is probably using GMT - was it correct yesterday? | Broncolanche
Sujuk Level: 62
    Posts: 416/1008 EXP: 1930279 For next: 54418
Since: 2.6.03 From: Littleton, CO
Since last post: 641 days Last activity: 577 days
| #3 Posted on 18.11.04 1628.25 Reposted on: 18.11.11 1629.01 | | I didn't check it yesterday so I have no clue. | CRZ
Big Brother Administrator Level: 205
    Posts: 5389/15431 EXP: 123899830 For next: 1569046
Since: 9.12.01 From: ミネアポリス
Since last post: 4 hours Last activity: 3 hours
| #4 Posted on 18.11.04 1815.04 Reposted on: 18.11.11 1815.05 | Originally posted by Broncolanche I didn't check it yesterday so I have no clue.
I think leap days make the quick'n'dirty calculation a bit off - Aaron's probably right about the GMT thing, too.
Here's the relevant code...
$age="(".floor((time()-$user[birthday])/86400/365.2425)." years old)";
where time() [current time] and $user[birthday] are in epoch time (number of seconds since Jan 1 1970), 86400 is the number of seconds in a day and 365.2425 is the average number of days in a year | | ALL ORIGINAL POSTS IN THIS THREAD ARE NOW AVAILABLE |
| | | | |