Simple calculation problem...
Posted: Wed Sep 11, 2002 5:52 am
This has bugged me for a while now.. i'm trying to calculate how many days have passed since unix epoch, but failed so far... I have tried like this:
floor($unix_timestamp / 86400);
intval($unix_timestamp / 86400);
but Im not getting the right values all the time, most of the time yes, but not all the time. The unix time stamp can be any given time since epoch. Are there any other ways to calculate this. (Or functions that I'm unaware of?)
thanks
-9902468
floor($unix_timestamp / 86400);
intval($unix_timestamp / 86400);
but Im not getting the right values all the time, most of the time yes, but not all the time. The unix time stamp can be any given time since epoch. Are there any other ways to calculate this. (Or functions that I'm unaware of?)
thanks
-9902468