05-22-2012 10:40 AM
Hi GerdW,
thank you for the clarification. I had a discussion with a colleague of mine, who says:
"Let's use "00:00:30.25 15.2°C" as the example string, and %<%H:%M:%u>t as the format specifier. After the parser has read the hours and minutes, the remaining string is "30.25 15.2°C", and now it's looking for fractional seconds (%u). This is somewhat ambiguous since the next part of the string has both the integer and fractional parts of the seconds value. Since there is nothing in the format specifier telling it to skip the "30", I believe the correct behavior is for it to read the entire number. Again, this is a case where the format specifier should be modified to better match the string. When %u is used the other way around in the Format Into String function, there is no ambiguity like this...the data coming into the function is a well-defined timestamp."
So I think while the function works fine, the help should be more clear about the usage of %u.
Regards,
Georg