DATELIB Function
Return a string representation of the current time.
LocalTime(TYPE_IV)
TYPE_IV
Either WINTime or DOSTime. If you specify WINTime, the string returned is formatted according to the format specified in the Control Panel's Regional and Language Options. If you specify DOSTime, the string returned represents a time formatted in the 12-hour format.
Description
Use this function to return a string representation of the current time using the preferred local time format. The exact result of this function will depend upon the country in which a program is running and on user preferences.
The DOSTime 12-hour time format does not include an AM/PM indicator. If you want an AM/PM indicator in a 12-hour time format, use the WINTime format. The AM/PM indicator will be the string specified in the Control Panel's Regional and Language Options.
If an error is encountered, the returned string will be "ERROR".
Example
copy ( LocalTime(WINTime) ) to Time_String