PEAK XOOPS - Re: Non-Military Time in englishin japanese

Re: Non-Military Time

List posts in the topic

question Re: Non-Military Time

msg# 1.1.3
depth:
2
Previous post - Next post | Parent - Children.1 | Posted on 2005/1/14 5:35
Salsero  二等兵   Posts: 9
Quote:
// format for date()  see http://jp.php.net/date
define('_PICAL_DTFMT_TIME','a g:i') ;

// set your locale
define('_PICAL_LOCALE','en_US') ;
// format for strftime()  see http://jp.php.net/strftime
define('_PICAL_STRFFMT_DATE','%d %b %Y (%a)') ;
define('_PICAL_STRFFMT_DATE_FOR_BLOCK','%d %b') ;
define('_PICAL_STRFFMT_TIME','%p %I:%M') ;

With the above, the am/pm is coming before the time, at least on my Web (e.g. am 8:00), so I've changed the 2nd and last line to:

// format for date()  see http://jp.php.net/date
define('_PICAL_DTFMT_TIME','g:i a') ; // <==

// set your locale
define('_PICAL_LOCALE','en_US') ;
// format for strftime()  see http://jp.php.net/strftime
define('_PICAL_STRFFMT_DATE','%d %b %Y (%a)') ;
define('_PICAL_STRFFMT_DATE_FOR_BLOCK','%d %b') ;
define('_PICAL_STRFFMT_TIME','%I:%M %p') ; //<==

and now it works very nicely. Thanks!

Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!