Odd key

Rémi Guyomarch rguyom@mail.dotcom.fr
Thu, 10 Feb 2000 17:13:33 +0100


On Fri, Feb 11, 2000 at 11:53:20AM -0500, L. Sassaman wrote:

>
> What exactly did you do to get this to display?
>
> On Wed, 9 Feb 2000, Remi Guyomarch wrote:
>
> > :public key packet:
> > version 3, algo 1, created 901704480, expires 0
> > [...]
> > :signature packet: algo 1, keyid FC56E2116FFC5075
> > version 3, created 901696481, md5len 5, sigclass 10
I copied the key into a file and did "gpg --list-packets the-file"
> > signature public key
> > --------- ----------
> > 901696481 < 901704480
> > Wed Jul 29 09:14:41 1998 < Wed Jul 29 11:28:00 1998
I wrote a few C lines to parse Unix timestamps. It's quite usefull for reading squid logs for example. Here it is : #include <stdio.h> #include <time.h> int main( void ) { time_t t; char buffer[1024], *s; while( !feof(stdin) ) { if( scanf( "%lu", &t ) != 1) break; if( fgets( buffer, sizeof(buffer), stdin ) == NULL ) break; s = ctime( &t ); s[strlen(s)-1] = 0; printf( "%s %s", s, buffer ); } return 0; }