RipCurl
|
| Posted: 04/21/2003, 7:15 PM |
|
CC 2.05 Php + templates, mysql
Im using Unix timestamps in the DB and want to know how to show it as hh:ii format in 12 hour (not 24)
the field for the time is
$fldevent_start which is the UNIX timestamp.
How can I convert it to normal time (ie 12:56 pm )
|
|
|
 |
RipCurl
|
| Posted: 04/23/2003, 1:13 PM |
|
bump
|
|
|
 |
RipCurl
|
| Posted: 04/24/2003, 1:54 PM |
|
Bump
|
|
|
 |
DaveRexel
|
| Posted: 04/24/2003, 2:54 PM |
|
pls try
strftime("%I : %M %p ",$timestamp);
Dave
|
|
|
 |
DaveRexel
|
| Posted: 04/25/2003, 12:53 PM |
|
did the solution work??
This would be important to others having the same problem
(wish people would respond when they have neen helped)
Dave
|
|
|
 |
RipCurl
|
| Posted: 04/25/2003, 5:29 PM |
|
Did something else:
$field = date("h:i a", $field);
|
|
|
 |
|