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
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: http://www.php.net/unsub.php
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
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
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
Hello
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?
Thank you ,
Cosmin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
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
Hi!
I wrote this simple function to return the current date minus supplied
number of years:
function get_birthdate($age_in_years) {
// get the current timestamp into an array
$timestamp = time();
$date_time_array = getdate($timestamp);
$hours = $dat
8 matches
Mail list logo