[Gambas-user] gb3: Format$

EA7DFH ea7dfh at ...2382...
Tue Jun 28 20:19:45 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

-- 
Jesus




More information about the User mailing list