CAPL Script

GetLocalTimeString

Syntax

void getLocalTimeString(char timeBuffer[]);

Function

Copies a printed representation of the current date and time into the supplied character buffer. The format of the string is ddd mmm dd hh:mm:ss jjjj (e.g. "Fri Aug 21 15:22:24 1998").

Parameters

timeBuffer The buffer the string will be written in.This buffer must be at least 26 characters long.

Return Values

...char timeBuffer[64];getLocalTimeString(timeBuffer);// now timeBuffer contains for example. "Fri Aug 21 15:22:24 1998"...

getLocalTime