|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-11 15:15 UTC] sniper@php.net
[2010-08-18 20:55 UTC] sniper at svencoop dot com
[2010-08-18 21:51 UTC] jedinewrepublic at netscape dot net
[2010-08-18 21:53 UTC] sniper at svencoop dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
I'm writing a timeclock for work, but have a problem processing 12 hour times: --Script-- <?php $T=array('05:00 PM','05:00PM','5:00 PM','5:00PM'); foreach ($T as $TIME) { echo $TIME.'<br>'; echo strtotime($TIME).'<br>'; echo date("Y-m-d h:i:s",strtotime($TIME)).'<br><br>'; } ?> --Output-- 05:00 PM 1026432000 2002-07-11 05:00:00 05:00PM 1026432000 2002-07-11 05:00:00 5:00 PM 1026432000 2002-07-11 05:00:00 5:00PM 1026432000 2002-07-11 05:00:00 I've compiled PHP 4.2.1 for Apache 2.0.39 with SSLOpen 0.9.7 beta 2. PHP is installed as a module. Is it me or my box? Thanks in advance, Mike Wilmes