How to use Regional Decimal symbol from windows?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
14 posts • Page 2 of 2
nmnogueira
Posts: 123
Joined: Thu May 05, 2011 12:59 pm

Re: How to use Regional Decimal symbol from windows?

Post by nmnogueira »

From what I could assess, it seems like formatTime() always returns the time format associated with the current UI language:
- lang = "de_AT.utf8" - fomat 02.11.2017 09:17:56
- lang = "en_US.utf8" - format 11/2/2017 9:17:56 AM
- lang = "ru_RU.utf8" - format 02.11.2017 9:17:56

This can be easily verified using the GettingStarted project.

Anyway, as Mr. Knipp said this is still being checked by the technical support.

yavaskoray
Posts: 29
Joined: Mon Dec 02, 2013 11:15 am

Re: How to use Regional Decimal symbol from windows?

Post by yavaskoray »

Another small issue which is related to the Regional time format in OA;
The time format parameters are defined different in the different parts of the help file.

For example:
- In the Part "formatTime()";
%x = Local representation of the date
%X = Local representation of the time
%c =Local representation of date and time

- In the Part "timeFormat" for the object TREND;
%x = Day/Month/Year
%X = Hour/Minute/Second
%c =Day/Month/Year Hour/Minute/Second



I have tested and I think that the description of the parameters in the part "timeFormat" for the object TREND is wrong.

Regards,
Koray

helchr
Posts: 1
Joined: Thu Feb 21, 2013 9:06 am

Re: How to use Regional Decimal symbol from windows?

Post by helchr »

Leopold Knipp wrote:
As far as I know there is no possibility to format a float value according to the current OS settings.
In WinCC OA always the "dot" is used as deicmal symbol.
Hello,
we use the Version 3.13 an have the same problem.
But if I take a look to the Version 3.10, there is no problem. There I can use comma or dot in a text field with a float number!
Our operators are very confused because they need to use both versions.

Best Regards

yavaskoray
Posts: 29
Joined: Mon Dec 02, 2013 11:15 am

Re: How to use Regional Decimal symbol from windows?

Post by yavaskoray »

Christian Helmholz wrote:
Leopold Knipp wrote:
As far as I know there is no possibility to format a float value according to the current OS settings.
In WinCC OA always the "dot" is used as deicmal symbol.
Hello,
we use the Version 3.13 an have the same problem.
But if I take a look to the Version 3.10, there is no problem. There I can use comma or dot in a text field with a float number!
Our operators are very confused because they need to use both versions.

Best Regards
We use v3.15 Patch 5.

Post Reply
14 posts • Page 2 of 2