TimeSys (Function) In french: HeureSys Returns or modifies the system time (current time defined for the current computer). Remark: This function is equivalent to Now. Versions 18 and later New in version 18 Versions 21 and later New in version 21
Res = TimeSys() // Res = "15332105" Res = TimeToString(TimeSys()) // Res = "15:33:21:05" CurrentTime = Left(TimeSys(), 4) // CurrentTime = "1533"
Syntax <Result>: Character string or Time variable System time in HHMMSSCC format (HH corresponds to hours, MM to minutes, SS to seconds and CC to hundredths of a second). Remarks - Caution: To modify the system time, you must have the administrator rights on the current computer.
- To get the time in a format other than HHMMSSCC, the string must be formatted using DateToString, Right, Left, etc.
- The HHMMSSCC format was chosen because it allows you to compare two times with hundredths-of-a-second accuracy.
In this version, TimeSys can only be used to return the system time (current time defined for the current computer or on the browser computer). In simulation mode, the time used is the time on the PC where the simulation is run. At runtime, the time of the mobile device is used.
Related Examples:
|
Unit examples (WINDEV): Calculations on durations
[ + ] Calculations on dates and times with the WLanguage functions: - Calculate the duration between two moments (dates and times) - Calculate a sum of durations - Calculate an average of durations
|
Business / UI classification : Neutral code
This page is also available for…
|
|
|