
September 30th, 2004, 02:33 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
date/time conversion problems
hi,
i'm having problems playing with system time in a program that i'm working on. I've worked out how to get the system time:
Code:
time_t myTime;
myTime = time(NULL);
When I output that i know that i've got the "number of seconds elapsed since some implementation-specific base time." as stated on this site:
http://www.codeproject.com/datetime/datetimedisc.asp This site is good in that it explains alot about the time, but i'm a bit how to convert it to what I want.
I'd like to be able to convert that time into something that I can actually use as a date. What I'm trying to do is get the current date (day, month and year) and use that for some other operations in my program.
Thanks in advance for any help,
niobi
|