kingofkolt wrote:[color=blue]
>
> "Gerry" <gn_@excite.com> wrote in message
> news:el94o0dusa8s22l077pivk52tgnepgkbqb@4ax.com...[color=green]
> > Like:
> >
> > $ftanggal=date("d M Y - H:i", (date("U")+60*60*6));
> >
> >
> > ??
> >
> > /Gerry
> >
> > On Fri, 29 Oct 2004 02:07:05 -0700, Brion Vibber <brion@pobox.com>
> > wrote:
> >[color=darkred]
> > >Gerry wrote:
> > >> I want this to show plus (+) 6 hours:
> > >>
> > >> $ftanggal=date("d M Y - H:i", (date("U")));
> > >>
> > >> How?
> > >
> > >The second parameter to date() is the timestamp to use, in Unix
> > >timestamp format: the number of seconds since January 1, 1970 GMT.
> > >
> > >The time() function gives you the current timestamp; you can easily add
> > >or subtract some number of seconds from that value before passing it to
> > >date().
> > >
> > >-- brion vibber (brion @ pobox.com)[/color]
> >[/color]
>
> Or more simply: $ftanggal=date("d M Y - H:i", (time() + 60*60*6));[/color]
Or to give your server a little break:
$ftanggal=date('d M Y - H:i', (time() + 21600));
:o)
Shawn
--
Shawn Wilson
shawn@glassgiant.com http://www.glassgiant.com