ctime conversion
hi guys :) i would love to know how the ctime works i mean how does it convert a given integer into a string!!
an example:
1 2 3 4
|
int TimeDate=0x481AD367;
time_t rawtime;
printf ( "The current local time is: %s", ctime((time_t*)&(TimeDate)) );
|
this will give us:
The current local time is: Fri May 02 09:40:07 2008
|
how this process has been done?
Topic archived. No new replies allowed.