CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Unix timestamp to hh:ii:ss format

Print topic Send  topic

Author Message
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);

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.