Re: [PHP] unix time stamp to readable date

2003-06-05 Thread Justin French
http://au.php.net/date Justin on 05/06/03 1:15 AM, Diana Castillo ([EMAIL PROTECTED]) wrote: > I know this is a stupid question but I am confused, > how do I convert a unix timestamp to a readable date with php? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Unix time

2002-05-23 Thread Miguel Cruz
On Thu, 23 May 2002, Cosmin wrote: > How can I compare Unix Time? > As integer values? > I take the unix time from database and I compare with the current time > and something is not functioning. Can somebody show me how can I do this? SELECT UNIX_TIMESTAMP(mytimestampfield) FROM table; Not

Re: [PHP] Unix time

2002-05-23 Thread Cosmin
yes I think is ok, I don't know why, but I used strtotime... (what do this function?) Thank you Cosmin Justin French <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It'd help if you showed us some code. > > If you've got a unix time stamp in your MySQL db, th

Re: [PHP] Unix time

2002-05-23 Thread Justin French
It'd help if you showed us some code. If you've got a unix time stamp in your MySQL db, then all you need to do is compare it to your local server time using time(). Easy. If your date is stored in YYY-MM-DD format, you'll have to convert it to a unix time stamp first (can be done in query, o

RE: [PHP] Unix-time problem

2001-03-04 Thread Don Read
On 05-Mar-01 Nicklas af Ekenstam wrote: > Hi! > > I wrote this simple function to return the current date minus supplied > number of years: > > function get_birthdate($age_in_years) { > > You, obviously, call it like this: echo get_birthdate(1); > Which would return a datestring that