[Gambas-user] AM/PM - Noon to 1PM Problem
Rob Kudla
sourceforge-raindog2 at ...94...
Wed Oct 19 17:37:41 CEST 2005
On Wed October 19 2005 10:37, Benoit Minisini wrote:
> And so, according to the GNU documentation, 12:00 is PM and
> 24:00 is AM. I don't know if it is the truth, but Gambas
> returns you what the GNU libraries tell him!
Well, strftime(), which is straight out of GNU libc, does this
for 11:30, 12:30 and 13:30 (using %I:%M %p):
11:30 AM
12:30 PM
01:30 PM
So I'm not sure which glibc function you're using to format the
date, but maybe you should use strftime() instead ;)
Rob
More information about the User
mailing list