#include <string_base.h>
Definition at line 479 of file string_base.h.
pfc::format_time::format_time |
( |
t_uint64 |
p_seconds | ) |
|
Definition at line 36 of file string_base.cpp.
38 unsigned weeks,days,hours,minutes,seconds;
40 weeks = (unsigned)( ( length / (60*60*24*7) ) );
41 days = (unsigned)( ( length / (60*60*24) ) % 7 );
42 hours = (unsigned) ( ( length / (60 * 60) ) % 24);
43 minutes = (unsigned) ( ( length / (60 ) ) % 60 );
44 seconds = (unsigned) ( ( length ) % 60 );
52 if (hours || days || weeks) {
53 m_buffer << hours <<
":" << format_uint(minutes,2) <<
":" << format_uint(seconds,2);
55 m_buffer << minutes <<
":" << format_uint(seconds,2);
const char* pfc::format_time::get_ptr |
( |
| ) |
const |
|
inline |
pfc::format_time::operator const char * |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: