Name
hw_GetDateStamp -- get current date and time (V6.0)
Synopsis
void hw_GetDateStamp(struct hwos_DateStruct *stamp);
Function
This function will retrieve the current date and time and copy it to the struct hwos_DateStruct pointer passed as parameter 1. struct hwos_DateStruct looks like this:

 
struct hwos_DateStruct
{
    int Seconds;
    int Minutes;
    int Hours;
    int Day;
    int Month;
    int Year;
};

hw_GetDateStamp() will initialize the individual members as follows:

Seconds:
This will be set to a value between 0 and 59.

Minutes:
This will be set to a value between 0 and 59.

Hours:
This will be set to a value between 0 and 23.

Day:
This will be set to a value between 1 and 31.

Month:
This will be set to a value between 0 and 11.

Year:
This will be set to the year number.

If you want to query the current date in a human-readable format, please use the hw_GetDate() function instead. See hw_GetDate for details.

Designer compatibility
Supported since Designer 5.0

Inputs
stamp
pointer to a struct hwos_DateStruct

Show TOC