[Gambas-user] gb3: Format$

Benoît Minisini gambas at ...1...
Tue Jun 28 23:13:51 CEST 2011


> El 28/06/11 19:05, Benoît Minisini escribió:
> >> Well. what I'm missing here?
> >> 
> >> I got the same results with rev.3906:
> >>  Print Format$(Now, "hh:nn")
> >>  Print Format$(Now, "hh:nn AM/PM")
> >> 
> >> ----
> >> 18:36
> >> 06:36
> >> 
> >> Finally, shouldn't the last line show "AM" or "PM" at the end?
> > 
> > "AM" or "PM" are actually displayed only if your language has support for
> > it. Otherwise, nothing is displayed. Note that AM/PM may be something
> > else on non- english languages.
> 
> I don't know the internals of locales and formats, but IIRC in Spanish
> the user can choose between 24h format or 12h format, which make sense
> on the am/pm suffix. Personally I never use it, but I was interested to
> see if it was a bug.
> 
> Thanks anyway

Apparently I can't decide that. I just ask the GNU C library to give me the 
AM/PM string for the current language. And for french and spanish, I get a 
null string.

But maybe there is option somewhere I am not aware of!

-- 
Benoît Minisini




More information about the User mailing list