C Conundrums?
Moderator: Moderators
C Conundrums?
I'm attempting to code a program in C to give the amount of time until a specific date. Unfortunately for me, time in C is represented as the amount of seconds elapsed since January 1st, 1970, for some reason I can't comprehend beyond 'unix used it'. Is there a simple way to convert a date into that format?
Shhh! I'm not officially back yet.
-
gannon
- Moderator
- Posts: 6974
- Joined: Sun Apr 04, 2004 4:48 pm
- Location: Near that one big lake
- Contact:
http://www.cplusplus.com/reference/clibrary/ctime/ might give an answer, gives at least the opposite 