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.
How to use Regional Decimal symbol from windows?
Search
-
- Posts: 123
- Joined: Thu May 05, 2011 12:59 pm
-
- Posts: 29
- Joined: Mon Dec 02, 2013 11:15 am
Re: How to use Regional Decimal symbol from windows?
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
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
Re: How to use Regional Decimal symbol from windows?
Leopold Knipp wrote:
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
Hello,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.
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
-
- Posts: 29
- Joined: Mon Dec 02, 2013 11:15 am
Re: How to use Regional Decimal symbol from windows?
Christian Helmholz wrote:
We use v3.15 Patch 5.Leopold Knipp wrote:Hello,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.
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