FF_SYSTEMTIME
From FullFAT
A structure defining a time and date object. Similar to the SYSTEMTIME object from the Windows API.
All members of this structure must be filled by the developers provided FF_GetSystemTime() function.
Each member is of unsigned short (16-bit) type.
typedef struct { FF_T_UINT16 Year; ///< Year (e.g. 2009). FF_T_UINT16 Month; ///< Month (e.g. 1 = Jan, 12 = Dec). FF_T_UINT16 Day; ///< Day (1 - 31). FF_T_UINT16 Hour; ///< Hour (0 - 23). FF_T_UINT16 Minute; ///< Min (0 - 59). FF_T_UINT16 Second; ///< Second (0 - 59). } FF_SYSTEMTIME;
Example
FF_T_SINT32 FF_GetSystemTime(FF_SYSTEMTIME *pTime) { SYSTEMTIME str_t; GetLocalTime(&str_t); // Windows Get time function. pTime->Hour = str_t.wHour; pTime->Minute = str_t.wMinute; pTime->Second = str_t.wSecond; pTime->Day = str_t.wDay; pTime->Month = str_t.wMonth; pTime->Year = str_t.wYear; return 0; }

