Changes between Version 4 and Version 5 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/GetDateStr
- Timestamp:
- 01/29/21 09:18:11 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/GetDateStr
v4 v5 6 6 7 7 char* GetDateStr(char* pszBuffer); 8 9 string GetDateStr(datetime_struct* pDate); 10 11 char* GetDateStr(datetime_struct* pDate, char* pszBuffer); 8 12 }}} 9 13 … … 11 15 12 16 * pszBuffer - buffer to hold formatted time, application must insure that this buffer is large enough. 17 * pDate - pointer to datetime_struct 13 18 14 19 == Return Value == … … 18 23 == Remarks == 19 24 20 This function returns the date information that is in memory based on a previous call to GetLinuxTime() or IsTimeChanged(). 25 This function returns the date information that is in memory based on a previous call to GetLinuxTime() or IsTimeChanged(). The versions of this function that take a datetime_struct pointer may be used to format date string based on an arbitrary date. 21 26 22 27 == Examples == … … 33 38 }}} 34 39 40 {{{ 41 datetime_struct dt; 42 dt.year = 2021; 43 dt.month = 1; 44 dt.day = 28; 45 46 string strDate = GetDateStr(&dt); 47 DisplayText(10, 10, strDate); 48 }}} 49 50 {{{ 51 datetime_struct dt; 52 dt.year = 2021; 53 dt.month = 1; 54 dt.day = 28; 55 56 char szDate[20]; 57 58 GetDateStr(&dt, str); 59 60 DisplayText(10, 10, szDate); 61 62 }}} 63 35 64 == See Also == 36 65