Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/GetTimeStr


Ignore:
Timestamp:
08/20/10 14:50:35 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v1 v2  
    11= GetTimeStr =
     2Get the time
     3
     4{{{
     5string GetTimeStr(int secs);
     6
     7char* GetTimeStr(char* pszBuffer, int secs);
     8}}}
     9
     10== Parameters ==
     11
     12 * secs - 0 = format time without secs, 1 = include seconds
     13 * pszBuffer - buffer to hold formatted time, application must insure that this buffer is large enough.
     14
     15== Return Value ==
     16
     17 * Returns the time formatted as "HH:MM:SS" or "HH-MM-SS", or "HH:MM x.m.", based on boot loader preferences. Application developers should consider that time string will be longer if preferences are set for 12 hour time.
     18
     19== Remarks ==
     20
     21
     22== Examples ==
     23
     24{{{
     25string strTime = GetTimeStr(1);
     26DisplayText(10, 10, strTime);
     27}}}
     28
     29{{{
     30char szTime[20];
     31GetTimeStr(szTime, 1);
     32DisplayText(10, 10, szTime);
     33}}}
     34
     35== See Also ==
     36
     37 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/GetDateStr GetDateStr]
     38