On Wed, 10 Apr 2002 14:28:07 +0400, Mithgol the Webmaster wrote:

> Just looked through the above examples. If long c=1018305218l and ctime(&c)
> works, what's wrong with cacheitem.lastseen which is "long"? Use
> ctime(&cacheitem.lastseen) instead of ctime((time_t *)(&cacheitem.lastseen)),
> and be happy. Or use

> long c = cacheitem.lastseen;

> and then

> ctime(&c);

Thanks for the suggestion.
I had already tried that. But it still didn't work.

(time_t *) is needed for setting the correct format.


-- 
 Glenn
 http://arachne.cz/
 http://www.delorie.com/listserv/mime/
 http://www.angelfire.com/id/glenndoom/download.htm
 http://www.thispagecannotbedisplayed.com/

Reply via email to