I've been trying to figure this out for a while and figured I'd ask some experts:
For a school assignment, I need to create a datebook program. One of the classes is a DateAndTime class. One constructor on the class is supposed to take an unsigned integer and convert it to Date and Time objects (other classes in the project).
My plan was to originally take the seconds since epoch and convert it to time_t then to struct tm so I could read in the month, date, year, hour, minute, second. Turns out that's harder than I thought.
Can anyone point me in the right direction?