Re: TIME FORMAT USING PHP
| From: | Ignatius Reilly | Date: | Sat, 11 Oct 2003 07:03:43 +0000 |
| Subject: | Re: TIME FORMAT USING PHP | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30977@lists.php.net to get a copy of this message | ||
$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: [PHP-DB] 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
>
>