Getting systems date and time
I want to take from the system,the hour(only the hour for example 03,12,23...),the month(01,02,......,12) the year(2006) and store them into integer variables.I have found some functions of the time library <time.h> such as strftime() which returns individual elements of the date and time ,but as i understand from its prototype ,it returns the elements in strings.The matter is that i want to edit the values and i can`t find a way doing this throught strings.
P.S. Sorry for my english.Any help is acceptable!!!