How can one format the time in order of increasing precision:
Year Month Day hour:min:sec.millisec
ie. 2006 6 5 11:40:35.456
Right now I have this setup that results in: Fri May 26 13:03:30.451
struct _timeb g_tstruct;
_ftime( &g_tstruct );
fprintf(LogFile, "%.19s.%hu\n", ctime( & ( g_tstruct.time ) ),
g_tstruct.millitm );
and have seen that another %s could be used to hold the year found from
&g_tstruct[20].
But I haven't been able to find any other formats available.
Thanks,