Re[2]: PHP / Date / Timezone

by =?iso-8859-1?Q?Josu=E9?= Figueira Machado <jmachado(at)mindspring.com>

 Date:  Thu, 06 Jun 2002 09:54:24 -0400
 To:  Nathan Lyle <nathan(at)upwebmaestro.com>
 Cc:  hwg-techniques(at)hwg.org
 References:  upwebmaestro
  todo: View Thread, Original
Probably not the cleanest way but this is what I do:

$mydate =3D date("d/m/Y H:i:s",strtotime ("+1 hour"));

HTH,

Josu=E9


At 09:02 AM 6/6/2002 -0400, Nathan Lyle wrote:
> > I know I'm a little late here, but in the date format you add the=20
> offset -- I
> > haven't actually done this or played with it, but you could try:
> > $adj_date =3D ("D, j M Y H:i:s +0100");
>
>I tried including a "+num" similar to your suggestion, and wound up
>with the + and the num value just printed along with the date and not
>affecting it. According to PHP's site, anything not recognized in the
>call will just be printed verbatim. (Like the : between H, i and s)
>
>~ The U.P. Web Maestro (Nathan Lyle)
>
>   E-Mail: nathan(at)upwebmaestro.com
>   Online: www.upwebmaestro.com
>    Phone: (906)485-4806
>
>"...the best way to prepare [to be a programmer] is to write programs, and=
=20
>to study great programs that other people have written. In my case, I went=
=20
>to the garbage cans at the Computer Science Center and fished out listings=
=20
>of their operating system." - Bill Gates.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA