moving companies : Computers : Programming : Languages : PHP : Function Libraries : Date and Time

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

128 of 131 people (98%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

I want to add 2 minutes with the current time(). How can I do it?

Jul 11th, 2001 11:53
Philip Olson, Ahsan Mani,


In short, you can do as follows :
  $time = time() + 120;
As there are 120 seconds in two minutes.  $time is now the local
timestamp plus two minutes.