# GetClock

The GetClock function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. inserts a formatted text string representing the current date and time into the spreadsheet.

Inputs

The GetClock function has the following syntax:

GetClock(Time, Format String, Local/GMT)

See the table for a description of the available parameters.

Parameter | Description
Time | Returns the current date and time as a string constructed using a "C" library standard Format string from a Time data structure.
Format String | Specifies the format for the display of the date and time. The default Format String is month/day/year hour:minute:second, which is represented as %m/%d/%Y %H:%M:%S. The following variables are allowed:
%m | month
%d | day
%Y | year
%H | hour
%M | minute
%S | second
%3N | millisecond
%6N | microsecond
%9N | nanosecond
Local/GMT | 0 = Local with Daylight Saving Time (default) 1 = GMT (UTC) 2 = Local with Standard Time

Outputs

Returns | A formatted string containing the date and time.
Results | The Time/Timer Vision Data Access functions, GetTime, is automatically inserted into the spreadsheet.