I need to get the system time in yy/mm/dd hr:min:sec:millisec format. I tried ctime(), but the result is in string format. Then tried localtime(), but result is incorrect date and time. Could you tell the reason why localtime() doesnt show correct time and date.
Also using localtime() will not give time in milliseconds. Is there any api to get all the details in just one API.
Thanks in advance,