Re: TIME FORMAT USING PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$time = "0900" ;
$time2 = substr( $time, 0, 2 ).":".substr( $time, 2, 2 ) ;

Ignatius
_________________________
----- Original Message -----
From: "Delz" <phpuser@modeglobal.com>
To: <php-db@lists.php.net>
Sent: Saturday, October 11, 2003 7:17 AM
Subject:  TIME FORMAT USING PHP


> Hi All,
>
> We have a time and attendance system that outputs the military time in and
> time out of an employee on an excel file wherein the format for the time
is
> like this :
>
> 0900
> 1700
>
> wherein 0900 is 9am and 1700 is 5pm.
>
> Is there a way in php where i can get output like this
>
> 09:00
> 17:00
>
> which is more recognizable than the latter. Any ideas would be
appreciated.
>
> Regards,
>
> Delz
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux