[Gambas-user] [Gambas Bug Tracker] Bug #704: Format does not handle time separator correctly

Benoît Minisini gambas at ...1...
Sat Aug 29 12:15:23 CEST 2015


Le 29/08/2015 11:55, Benoît Minisini a écrit :
>
> For the last time, Format$() *does* use the localization settings, as
> explicitly stated in the documentation.
>
> But it uses them for its special formatting characters only. Non-special
> characters are just inserted as is in the resulting string.
>
> If you want to write translatable date/time code, you have to use
> pre-defined date formats (gb.GeneralDate and ).
>
> If none of the pre-defined formats fit your needs, then you have to
> create your own by:
>
> 1) Determining the order of date and time components by analysing the
> formatting of a cleverly chosen date with gb.ShortDate and gb.ShortTime.
> See the source code of DateChooser control for the details.
>
> 2) Using the "/" and ":" formatting characters in the format string.
>
> Regards,
>

I have update the wiki with that information.

http://gambaswiki.org/wiki/doc/locale

Regards,

-- 
Benoît Minisini




More information about the User mailing list