Andrew R Posted October 14, 2006 Share Posted October 14, 2006 HiHow would I subtract 1 hour from this time function [code]$time = date('H:i');[/code]Cheers :) Link to comment https://forums.phpfreaks.com/topic/23958-subtracting-time/ Share on other sites More sharing options...
Orio Posted October 14, 2006 Share Posted October 14, 2006 [code]<?php$time = date("H:i", time()-60*60);?>[/code]Check the [url=http://www.php.net/manual/en/function.date.php]date()[/url] function for further info :)Orio. Link to comment https://forums.phpfreaks.com/topic/23958-subtracting-time/#findComment-108885 Share on other sites More sharing options...
Andrew R Posted October 14, 2006 Author Share Posted October 14, 2006 Thanks very much :) Link to comment https://forums.phpfreaks.com/topic/23958-subtracting-time/#findComment-108887 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.