Using Time funcitons
Posted on 2000-04-18
I wanted to use time funcitons in my program to get the date, etc.
I tried doing:
struct tm current_time;
day = current_time.tm_mday;
This however returns 0, and when I do the same for month and year, I get some huge value..
I tried doing asctime(¤t_time);
but this returned a similar answer that was not right..
ps- please only give me c routines... I'm not using c++ for this!