getTime
Top  Previous  Next

val =getTime ( integer Mode = TIME_ALL)

Use this function to retrieve the system time and date. The system time is expressed in Coordinated Universal Time (UTC).

Parameters
 
Mode  
 
An enumerated integer specifying the return value. Must be one of the following values:  
 
TIME_ALL – returns the string containing the current date and time  
TIME_HRS – returns the current hour.  
TIME_MIN – returns the current minute.  
TIME_SEC – returns the current second  
TIME_DAY – returns the current day  
TIME_MNT – returns the current month  
TIME_YER – returns the current year  
 
Return values
 
If Mode is set to TIME_ALL, the return value is a string; in all other cases it is an integer value representing the selected mode.  
 
Example
 
Print getTime(TIME_ALL)  
Print "Current hour: ", getTime(TIME_HOUR)