| 2 | Get the time |
| 3 | |
| 4 | {{{ |
| 5 | string GetTimeStr(int secs); |
| 6 | |
| 7 | char* 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 | {{{ |
| 25 | string strTime = GetTimeStr(1); |
| 26 | DisplayText(10, 10, strTime); |
| 27 | }}} |
| 28 | |
| 29 | {{{ |
| 30 | char szTime[20]; |
| 31 | GetTimeStr(szTime, 1); |
| 32 | DisplayText(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 | |