Hello,
I'm trying to convert a date like this : "20-12-01" to seconds or millisenconds.
I don't find the tight function to do that.
Many thanks for helping me,
Christophe
Hello,
I'm trying to convert a date like this : "20-12-01" to seconds or millisenconds.
I don't find the tight function to do that.
Many thanks for helping me,
Christophe
The function should be time(). Look up the syntax of it.
1978 Silver Anniversary Corvette
time_t time(time_t *t);
takes a pointer to type time_t and stores in the value pointed to the current time(on most systems this is the amount of seconds from January 1, 1970, but this is not guaranteed) and also returns that value. This function will not convert a date to milliseconds. You have to do some string parsing. How are you deciding what millisecond value represents what date? Is it milliseconds since a certain date?
This function seems to be the good one to use.
In fact, I need to use a function (developped by somebody else) that takes in the date in milliseconds format.
I just need to find out what is the time_t type.
Maybe if I don't find, I'll ask you again.
Thanks,
Chris
time_t??? In my whole career of programming C, I've never encountered that data type. Explain, please.
1978 Silver Anniversary Corvette
Thanks, quzah.
1978 Silver Anniversary Corvette