time conversion
C / C++ / MFC
5
Posts
4
Posters
0
Views
1
Watching
-
how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss
vineesh
Use the
localtime
function to converttime_t
tostruct tm
. Then use string formatting to get the required format.«_Superman_»
-
how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss
vineesh
-
how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss
vineesh
Use the C runtime function
strftime
or_tcsftime
for details, visit the MSDN page http://msdn.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx[^]