gple Posted November 29, 2008 Share Posted November 29, 2008 I have a variable time=13:15:00 (time of day). how to I add another hour and 15 minutes to that time. Link to comment https://forums.phpfreaks.com/topic/134796-add-to-tim/ Share on other sites More sharing options...
rhodesa Posted November 29, 2008 Share Posted November 29, 2008 <?php $time = '13:15:00'; $newtime = strtotime($time) + (75 * 60); // 75 * 60 is 1:15 in seconds print date('H:i:s',$newtime); ?> Link to comment https://forums.phpfreaks.com/topic/134796-add-to-tim/#findComment-701933 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.