catsoup Posted August 29, 2013 Share Posted August 29, 2013 Hi All, What do you think this should give? : echo strtotime('I'); (Thats a capital 'i') On my PHP 5.2.6 and PHP 5.3.3 and system, it seems to give a time nine hours previously: $ cat test.php <?php date_default_timezone_set('UTC'); $s="I"; echo "strtotime('$s')=".strtotime($s)."\n"; echo "date(strtotime('$s'))=".date(DATE_RFC822,strtotime($s))."\n"; echo "now=".date(DATE_RFC822)."\n"; $ php test.php strtotime('I')=1377749122 date(strtotime('I'))=Thu, 29 Aug 13 04:05:22 +0000 now=Thu, 29 Aug 13 13:05:22 +0000 Anyone know what format of date/time a single capital 'I' is matching? Cheers! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.