ego0 Posted September 8, 2006 Share Posted September 8, 2006 How do I go about adding say 2 minutes onto the current time? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted September 8, 2006 Share Posted September 8, 2006 Add 120 seconds.[code]<?php$curtime = time();$plus2min = $curtime + 120;echo 'In 2 minutes it will be ' . date('g:i a',$plus2min);?>[/code]Ken Quote Link to comment Share on other sites More sharing options...
ego0 Posted September 8, 2006 Author Share Posted September 8, 2006 Thats really simple. I was expecting this to be a very very complicated problem. Thanks :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.