Gossamer Forum
Home : Products : Links 2.0 : Customization :

Time Format

Quote Reply
Time Format
Is there a way to set the time from a 24 hour clock to a 12 hour clock?

Also my server is EST and I was wondering if you can set the time back to PST some how?
Quote Reply
Re: Time Format In reply to
Something like this
$min = "%M";
$esthour = "%l";
$secs = "%S";
$hour= $esthour - 3;
use POSIX qw(strftime);
$time = strftime "$hour:$minute:$secs PST", localtime;

------------------
After Eliots, replace whats in sub get_time in db_utils.pl with this. Since time is already in site_html_templates.pl, all you have to do to post this is put <%time%> on your templates.


[This message has been edited by Bmxer (edited November 30, 1999).]
Quote Reply
Re: Time Format In reply to
What file woudl I look under to change this?
Quote Reply
Re: Time Format In reply to
In the db_utils.pl file.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------