[Gambas-user] AM/PM - Noon to 1PM Problem
Benoit Minisini
gambas at ...1...
Thu Oct 20 00:17:20 CEST 2005
On Wednesday 19 October 2005 17:37, Rob Kudla wrote:
> 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
>
I use strftime() - There is no other function I know.
--
Benoit Minisini
More information about the User
mailing list