Re: dumb time question
| From: | Tim Ward | Date: | Mon, 13 Jan 2003 22:30:38 +0000 |
| Subject: | Re: dumb time question | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131481@lists.php.net to get a copy of this message | ||
use the date() function, in this case date("i") and date("h") or
date("H")
Tim Ward
http://www.chessish.com
mailto:timward@chessish.com
----- Original Message -----
From: Pag <dante@mail.telepac.pt>
To: <php-general@lists.php.net>
Sent: Monday, January 13, 2003 10:25 PM
Subject: [PHP] dumb time question
>
> Ok, this is going to be laughable, but here goes. I am looking at code too
> much to get this one:
>
> Have 2 text fields on a database called "hours" and "minutes".
> How can i get the current time (hour-minutes) in two digit format and
> apply it to the two variables? Everything i do only gets one digit when
the
> minutes are between 00 and 10.
> I know its going to be stupid but anyway, could use your help, i cant see
> anything straight in this code anymore. :-P
> Sorry and thanks.
>
> Pag
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>