Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Time - property of object Pm

Description:
Value of the system computer time
Syntax:
Time As Date
Calling:
t = Pm.Time
Note:
Property access for read and write.

The precision of the time is in milliseconds (20 ms in OS Windows XP), while the precision of the VBScript.Now function is in seconds.

By this property the time can be even set up as long as the permission for changing the time is set in OS Windows. It is not recommended to set the time unnecessarily too often. If the time change is greater than 5 second when its setting, then the PmRoot.onTimeChange event fires.

 
This property is also functional for Web Panels. It is not functional in InternetExplorer8 and lower. For Web Panels this property is for read only. The property is functional also in Macro expression $.expr.
Example:
Time shifting to 1 hour forward. At first the current time is read, then 1 hour is added to it (the Date data type is in fact a real number where the value 1.0 means 1 day) and the result is stored and thereby time on PC is changed.
Pm.Time = Pm.Time + (1.0/24.0)
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
- Time
 
 
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice