I don't know if this helps any, but DJGPP produces the following output
with your example program (after relocating the declaration of 'c'),
although
it gives a warning about "passing arg 1 of 'ctime' from incompatible pointer
type" for the second 'printf' statement :

Today's date and time: Wed Apr 10 11:12:02 2002

date/time of 1,018,305,218: Mon Apr  8 22:33:38 2002


Joe.

> -----Original Message-----
> From: Glenn McCorkle [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 2:16 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: WWWMAN is Working...
> 
> On 9 Apr 2002 00:59:02 -0000, [EMAIL PROTECTED] wrote:
> 
> > wrote:
> 
> >> The correct 4 bytes are being "grabbed" from cache.idx
> 
> > Are you really sure that it is the correct bytes??
> > (The filesize is not correct, sometimes files are in Gigabyte sizes )
> 
> Yes, I'm sure.
> 
> My example was not hypothetical.
> These are the 4 bytes that wwwman grabbed from the cache.idx file.
> 
> C2 1A B2 3C = 1,018,305,218
> (date/time of file in question = Apr 08 18:33:42 2002 )
> 
> 1,018,305,218 seconds after Jan 01 00:00:00 1970 == Apr 08 18:33:42 2002
> 
> 
> Try it for yourself. ;-)
> 
> --- 04082002.cpp ---
> #include <stdio.h>
> #include <time.h>
> 
> int main(void)
> {
>    time_t t;
> 
>    time(&t);
>    printf("Today's date and time: %s\n", ctime(&t));
>    long c=1018305218l;
>    printf("date/time of 1,018,305,218: %s\n", ctime(&c));
>    return 0;
> }
> ____________________
> 
> 
> -- 
>  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