|
|
|
|
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. 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.
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|