GETTIME

Purpose: Retrieve the current local time.

Format:    GETTIME     hour    minutes    <seconds>    <milliseconds>

Notes:    When this command is executed,  the local time will be returned in the selected variables.  These must valid numeric variable names.  Both the  hour  and  minutes  parameters are required.  The  seconds  and     milliseconds   parameters are optional.
 

Example:

# Example 1: Get the time and pop it up in a box.

gettime hour min sec msec

$text = hour ":" min ":" sec " - " msec
pause $text

# Example 2: Pop up a pause box every minute.

gettime hh old
new = old

*Waitamin

 if new > old
  pause "Another minute has passed"
  old = new
 endif

 gettime hh new

goto waitamin
 
 

See Also:  GETDATE