----------------------------------------------------------------------------- Return a string representation -----------------------------------------------------------------------------
| 87 | // Return a string representation |
| 88 | //----------------------------------------------------------------------------- |
| 89 | string TimeStampImpl::GetAsString |
| 90 | ( |
| 91 | ) |
| 92 | { |
| 93 | // Convert m_stamp (FILETIME) to SYSTEMTIME for ease of use |
| 94 | SYSTEMTIME time; |
| 95 | ::FileTimeToSystemTime( (FILETIME*)&m_stamp, &time ); |
| 96 | |
| 97 | char buf[100]; |
| 98 | sprintf_s( buf, sizeof(buf), "%04d-%02d-%02d %02d:%02d:%02d:%03d ", time.wYear, time.wMonth, time.wDay, time.wHour, time.wMinute, time.wSecond, time.wMilliseconds ); |
| 99 | string str = buf; |
| 100 | return str; |
| 101 | } |
| 102 | |
| 103 | //----------------------------------------------------------------------------- |
| 104 | // <TimeStampImpl::operator-> |
nothing calls this directly
no outgoing calls
no test coverage detected