RE: [PHP-DB] date format question
| From: | Beau Lebens | Date: | Wed, 28 Nov 2001 01:51:55 +0000 |
| Subject: | RE: [PHP-DB] date format question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14635@lists.php.net to get a copy of this message | ||
try "H" as your hour format (date("H")+5)
although out of interest, at 9:51am, using either "g" or "H" gives me 2:51
pm
HTH
/beau
// -----Original Message-----
// From: Matt Nigh [mailto:matt@mattnigh.com]
// Sent: Wednesday, 28 November 2001 9:48 AM
// To: php-db
// Subject: [PHP-DB] date format question
//
//
// hi,
// i'm wondering if anyone could help me in formatting a date
// so it is 5 hours ahead of the server time.
// here's the code i'm using but it doesn't seem to work:
//
// $date = date("F dS, Y g:i:s A",
//
mktime(date("g")+5,date("i"),date("s"),date("m"),date("d"),da
// te("Y")) );
//
// i've already looked in the manual and around the net for
// stuff, but wasn't able to find anything for what i needed.
// if anyone could help out, i'd appreciate it.
//
// thanks,
//
//
// Matt
//