Changes between Version 4 and Version 5 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/GetDateStr


Ignore:
Timestamp:
01/29/21 09:18:11 (4 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/GetDateStr

    v4 v5  
    66
    77char* GetDateStr(char* pszBuffer);
     8
     9string GetDateStr(datetime_struct* pDate);
     10
     11char* GetDateStr(datetime_struct* pDate, char* pszBuffer);
    812}}}
    913
     
    1115
    1216 * pszBuffer - buffer to hold formatted time, application must insure that this buffer is large enough.
     17 * pDate - pointer to datetime_struct
    1318
    1419== Return Value ==
     
    1823== Remarks ==
    1924
    20 This function returns the date information that is in memory based on a previous call to GetLinuxTime() or IsTimeChanged().
     25This 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.
    2126
    2227== Examples ==
     
    3338}}}
    3439
     40{{{
     41datetime_struct dt;
     42dt.year = 2021;
     43dt.month = 1;
     44dt.day = 28;
     45
     46string strDate = GetDateStr(&dt);
     47DisplayText(10, 10, strDate);
     48}}}
     49
     50{{{
     51datetime_struct dt;
     52dt.year = 2021;
     53dt.month = 1;
     54dt.day = 28;
     55
     56char szDate[20];
     57
     58GetDateStr(&dt, str);
     59
     60DisplayText(10, 10, szDate);
     61
     62}}}
     63
    3564== See Also ==
    3665