From: "Rafal Maj" Newsgroups: comp.os.msdos.djgpp Subject: Date in seconds Date: Sat, 5 May 2001 22:10:37 +0200 Organization: Academic Computer Center CYFRONET AGH Lines: 12 Message-ID: <9d1mlr$i8j$1@info.cyf-kr.edu.pl> NNTP-Posting-Host: d-94-53-11.cyfronet.krakow.pl X-Trace: info.cyf-kr.edu.pl 989093371 18707 149.156.1.171 (5 May 2001 20:09:31 GMT) X-Complaints-To: news AT cyf-kr DOT edu DOT pl NNTP-Posting-Date: Sat, 5 May 2001 20:09:31 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Is there some function that will represent time in seconds ? If I remember correct, ther was some functions return date as seconds after 1972.??.?? or something like that. I have found function time()... but I have problems with it: printf("Time is %d\n", time(0)); This won't compile in C++ and will in C. Why ? How to compile in C++ ? Thanks Raf256