Re: increment hours

From: Date: Mon, 15 Oct 2001 12:04:44 +0000
Subject: Re: increment hours
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71090@lists.php.net to get a copy of this message
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@dir.bg> skrev i en meddelelse news:20011015114355.55449.qmail@pb1.pair.com... > Hi, > how can I increment hours in time variable ( i.e. with 3 hours ) ? > > Thanks, > Rosen > >

« previous php.general (#71090) next »