[Gambas-user] AM/PM - Noon to 1PM Problem

Rob Kudla sourceforge-raindog2 at ...94...
Thu Oct 20 01:51:55 CEST 2005


On Wed October 19 2005 18:17, Benoit Minisini wrote:
> > Well, strftime(), which is straight out of GNU libc, does
> > this for 11:30, 12:30 and 13:30 (using %I:%M %p):
> > 12:30 PM
> > 01:30 PM
> I use strftime() - There is no other function I know.

Interesting.  In that case, I don't understand why

strftime("%I:%M %p", 0, 30, 12, 19, 10, 2005)

returns 12:30 PM, but 

Format(Time(12, 30, 0), "h:nn AM/PM") 

which should be equivalent, returns 0:30 PM.  Aren't you 
evaluating the "h" placeholder as "%I"?

Rob




More information about the User mailing list