Date: 10/15/01
- Next message: Rudi Ahlers: "[PHP] Switch syntax"
- Previous message: Andrey Hristov: "Re: [PHP] increment hours"
- In reply to: Rosen: "[PHP] increment hours"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Toke herkild:
It could be done like :
$Time = Time(); // sets time
$Time = Time+(3*60*60); // sets time + 3 hours
The idea is that Time is counted in seconds since 1.1.1970 which leads us
to:
second*minutes*amount_of_hours_to_add
60 secunds = 1 minute.
60 minutes = 1 hour
"Rosen" <rosen_dm <email protected>> skrev i en meddelelse
news:20011015114355.55449.qmail <email protected>
> Hi,
> how can I increment hours in time variable ( i.e. with 3 hours ) ?
>
> Thanks,
> Rosen
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Rudi Ahlers: "[PHP] Switch syntax"
- Previous message: Andrey Hristov: "Re: [PHP] increment hours"
- In reply to: Rosen: "[PHP] increment hours"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

