[Gambas-user] Format & localization bug

Benoît Minisini g4mba5 at gmail.com
Tue Jan 12 21:44:36 CET 2021


Le 12/01/2021 à 21:39, Jussi Lahtinen a écrit :
> 
>     If it's actually Finnish, then today is printed as:
> 
>     ti 12. tatammikuu 2021 14.18.46
> 
>     So "." becomes the time separator, and so the ":" in the time format is
>     replaced by that ".".
> 
> 
> Isn't the whole idea of Format command to let the user define the format?

No. It's for formatting a value according to the current localization.

> So, the format should be user defined independently of localization. Right?
> I have never seen this "ti 12. tammikuu 2021" format to be used in 
> Finland. Time is officially written as "14.18", but "14:18" is better 
> and equally understood.
> 
> 
> Jussi
> 

To see which date format is used by Gambas, run "date +%c" in a shell 
using your current localization. The date and time separators are 
extracted from this string.

Regards,

-- 
Benoît Minisini


More information about the User mailing list