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 :) Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Andrew R Posted October 14, 2006 Author Share Posted October 14, 2006 Thanks very much :) 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.