Re: [PHP] Date manipulation

2012-10-25 Thread Daniel Brown
On Thu, Oct 25, 2012 at 3:06 PM, Ron Piggott wrote: > > Is it possible for PHP to accept the following as a date: > > 04:11:22 Aug 21, 2011 PDT > > so I may output it as: > > gmdate(‘Y-m-d H:i:s’) > > - I want the time zone included Sure. -- Network Infrastructure Manager http://www.php.

[PHP] Date manipulation

2012-10-25 Thread Ron Piggott
Is it possible for PHP to accept the following as a date: 04:11:22 Aug 21, 2011 PDT so I may output it as: gmdate(‘Y-m-d H:i:s’) - I want the time zone included Ron Ron Piggott www.TheVerseOfTheDay.info

RE: [PHP] Date Manipulation

2004-12-02 Thread Gryffyn, Trevor
nce the beginning of the "Unix Epoch" (# of secs since January 1, 1970 that is... Hey, time's gotta start somewhere eh?) Hope this helps clarify mktime(), strtotime() and date(). -TG > -Original Message- > From: Christopher Weaver [mailto:[EMAIL PROTECTED] > Sent:

Re: [PHP] Date Manipulation

2004-12-01 Thread Christopher Weaver
Sorry about that. Works great with date. Thanks. "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >* Christopher Weaver <[EMAIL PROTECTED]>: >> This code: >> >> echo strtotime("now"); >> echo mktime("Ymd", strtotime("now")); >> >> is producing this result:

Re: [PHP] Date Manipulation

2004-12-01 Thread Matthew Weier O'Phinney
* Christopher Weaver <[EMAIL PROTECTED]>: > This code: > > echo strtotime("now"); > echo mktime("Ymd", strtotime("now")); > > is producing this result: > > 1101945775 > Warning: mktime(): Windows does not support negative values for this > function ... > -1 > > What am I doing wrong? Using the w

Re: [PHP] Date Manipulation

2004-12-01 Thread Christopher Weaver
This code: echo strtotime("now"); echo mktime("Ymd", strtotime("now")); is producing this result: 1101945775 Warning: mktime(): Windows does not support negative values for this function ... -1 What am I doing wrong? Thanks again. "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EM

RE: [PHP] Date Manipulation

2004-12-01 Thread Gryffyn, Trevor
panding on it. -TG > -Original Message- > From: Christopher Weaver [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 30, 2004 9:19 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Date Manipulation > > > I've looked at the date functions in the manual but can&

[PHP] Date Manipulation

2004-11-30 Thread Christopher Weaver
I've looked at the date functions in the manual but can't find what I need. All I want to do is add and subtract days without ending up with bogus date values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36. Just a nod in the write direction would be great. Thanks. -- PHP General Mailing List (

Re: [PHP] Date Manipulation

2004-11-30 Thread John Holmes
Christopher Weaver wrote: I've looked at the date functions in the manual but can't find what I need. All I want to do is add and subtract days without ending up with bogus date values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36. Just a nod in the write direction would be great. mktime() or str