GetDocklightTimeStamp

Top  Previous  Next

Returns the current system date/time, according to the Docklight date/time stamp format chosen in the following Options dialog checkboxes:

Time stamp
Date stamp
Use time stamps with 1/100 seconds precision

 

The GetDocklightTimeStamp function is especially useful for printing additional time information using the AddComment method.

 

Return Value

 

String

 

Syntax

 

result = DL.GetDocklightTimeStamp()

 

Remarks

 

See also the AddComment method.

 

Example

 

' Example GetDocklightTimeStamp

 

DL.ClearCommWindows

DL.StartCommunication

DL.AddComment "Communication started at " & DL.GetDocklightTimeStamp()

DL.AddComment "Waiting for data..."

 

' Endless loop to prevent the script from terminating immediately

Do

   DL.Pause 1 ' (the pause reduces CPU load while idle)

Loop