Veritas-bu

[Veritas-bu] converting unix time

2001-03-08 13:24:04
Subject: [Veritas-bu] converting unix time
From: James Hansen jhansen AT virtual DOT com
Date: Thu, 08 Mar 2001 11:24:04 -0700
This is a multi-part message in MIME format.
--------------0A9C3043EB69464CD4B992CF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Here's the source code for doing the same thing "bpdbm -ctime" does. 
Compile it using 'gcc -o ctime ctime.c' and run it using 'ctime
981234567', for example.

#include <time.h>

main(argc,argv)
int     argc;
char    *argv[];
{
void    exit();
time_t  itime;

        if ( argc != 2 ) {
                printf("ctime: incorrect arg count\n");
                exit(0);
        }
        itime = atol(argv[1]);
        printf ("%s = %s", argv[1], ctime(&itime));
}
--------------0A9C3043EB69464CD4B992CF
Content-Type: text/x-vcard; charset=us-ascii;
 name="jhansen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for James Hansen
Content-Disposition: attachment;
 filename="jhansen.vcf"

begin:vcard 
n:Hansen;James B.
tel;cell:303-520-8504
tel;fax:303-457-4895
tel;work:303-301-3029
x-mozilla-html:FALSE
url:www.virtual.com
org:Advanced Systems Group;Professional Services
adr:;;12405 N Grant St;Denver;CO;80241;
version:2.1
email;internet:jhansen AT virtual DOT com
title:<img src=http://www.virtual.com/images/newasglogosmall.gif 
border=0><br>Storage Consulting Practice Lead
fn:James B. Hansen
end:vcard

--------------0A9C3043EB69464CD4B992CF--




<Prev in Thread] Current Thread [Next in Thread>