Date and Time - PHP
This is a discussion on Date and Time - PHP ; Hi all,
Anyone know any reason that the date function would return 2am in the
morning as 102 if i use it in the following manner?
$time=date("H:i:s");
print $time;
this outputs 102:14:51 instead of 02:14:51, anyone know where the 1 ...
-
Date and Time
Hi all,
Anyone know any reason that the date function would return 2am in the
morning as 102 if i use it in the following manner?
$time=date("H:i:s");
print $time;
this outputs 102:14:51 instead of 02:14:51, anyone know where the 1 comes
from? and why its there?
Cheers From
baldey_uk
-
RE: [PHP] Date and Time
What version of PHP, OS, web server, etc are you running? Is that the
exact code you used? Did you try it in a file all by itself and did it
return the same result?
---John Holmes...
> -----Original Message-----
> From: baldey_uk [mailto:baldey_uk@SoftHome.net]
> Sent: Sunday, April 28, 2002 6:22 PM
> To: Php-General
> Subject: [PHP] Date and Time
>
> Hi all,
>
> Anyone know any reason that the date function would return 2am in the
> morning as 102 if i use it in the following manner?
>
> $time=date("H:i:s");
> print $time;
>
>
> this outputs 102:14:51 instead of 02:14:51, anyone know where the 1
comes
> from? and why its there?
>
>
> Cheers From
>
> baldey_uk
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
-
Re: Date and Time
seems like you echo an 1 before print $time is called. Look through your
code, there
must be something printed or echod. Perhaps it's simple some html
(?>1<?php) or something.
Regards, Michael
"Baldey_uk" <baldey_uk@SoftHome.net> schrieb im Newsbeitrag
news:BCEJJDCJDPNBLGKFPAOBCEDDCBAA.baldey_uk@SoftHome.net...
> Hi all,
>
> Anyone know any reason that the date function would return 2am in the
> morning as 102 if i use it in the following manner?
>
> $time=date("H:i:s");
> print $time;
>
>
> this outputs 102:14:51 instead of 02:14:51, anyone know where the 1 comes
> from? and why its there?
>
>
> Cheers From
>
> baldey_uk
>
>