CAPL Script

GetLocalTime

Syntax

void getLocalTime(long time[]);

Function

Returns details to the current date and time in an array of type long.

Parameters

An array of type long with at least 9 entries. The entries of the array will be filled with the following information:

Return Values

...long tm[9];getLocalTime(tm);// now tm contains the following entries:// tm[0] = 3; (seconds)// tm[1] = 51; (minutes)// tm[2] = 16; (hours)// tm[3] = 21; (day of month)// tm[4] = 7; (month stating with 0)// tm[5] = 98; (year)// tm[6] = 5; (weekday)// tm[7] = 232;(day of year)// tm[8] = 1; (Summer time)...

getLocalTimeString