Applies to:
PcVue 10.0 onwards |
||
|
||
Summary:
When formatting the display of a register as a time and/or date there are some subtleties in behaviour that are not immediately obvious. The following notes and attached project attempt to clarify these behaviours. Formatting the display of a register as a time and/or date is explained in the Help: The formatting can be used in the Text-Display Register and Send-Register animations. Originator: STFA / RM |
||
|
||
Behaviors:
|
||
Using the formatting characters as a period:If you enclose any of the formatting characters in square brackets their behaviour is modified and they behave as a period rather than a time and / or date.
|
||
Inputting a time when in a time zone other that UTC0:If you use hh:nn:ss@s-hh:nn:ss in a time zone other than UTC0 you will find that it is not possible to enter an hour lower than the time offset. For example for UTC+1 the minimum time you can enter is 01:00:00.
The solution is to format the hour as a period. [hh]:nn:ss@s-[hh]:nn:ss. If you want to prevent the User from entering a time greater than 23:59:59 (remember the hour is no longer constrained 0 to 23) you can do this using the Maximum property of the variable. In the above example, where the received unit is seconds, the Maximum would need to be set to 86399. Download attachments: format.zip |
||
|
||
|
Created on: 10 Nov 2016 Last update: 13 May 2024