ego0 Posted September 8, 2006 Share Posted September 8, 2006 How do I go about adding say 2 minutes onto the current time? Link to comment https://forums.phpfreaks.com/topic/20147-adding-on-time/ 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 Link to comment https://forums.phpfreaks.com/topic/20147-adding-on-time/#findComment-88569 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 :) Link to comment https://forums.phpfreaks.com/topic/20147-adding-on-time/#findComment-88570 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.