[Gambas-user] Format & localization bug

Jussi Lahtinen jussi.lahtinen at gmail.com
Tue Jan 12 21:40:37 CET 2021


But I did find a workaround:
Subst(("&2/&1/&3 &4:&5"), Day(hAlarm.hTotal), Month(hAlarm.hTotal),
Year(hAlarm.hTotal), Format(Hour(hAlarm.hTotal), "00"),
Format(Minute(hAlarm.hTotal), "00"))


Jussi

On Tue, Jan 12, 2021 at 10:39 PM Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:

>
> 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?
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210112/31d3c04a/attachment.htm>


More information about the User mailing list