From owner-freebsd-questions Tue Dec 8 15:59:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA29952 for freebsd-questions-outgoing; Tue, 8 Dec 1998 15:59:25 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA29947 for ; Tue, 8 Dec 1998 15:59:20 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id RAA38792; Tue, 8 Dec 1998 17:58:55 -0600 (CST) Date: Tue, 8 Dec 1998 17:58:54 -0600 From: Dan Nelson To: Don Read , Robert Wall Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Hello Message-ID: <19981208175854.A38719@emsphone.com> References: <3.0.5.32.19981208175501.007fba40@mail> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.3i In-Reply-To: <3.0.5.32.19981208175501.007fba40@mail>; from "Don Read" on Tue Dec 8 17:55:01 GMT 1998 X-OS: FreeBSD 3.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Dec 08), Don Read said: > back on 09:16 AM 12/8/98 +0000, you said: > >I know this is a bit off-topic for this list, but is there a function > >anywhere that tells the number of seconds that have passed since the > >epoch? > > > > #!/usr/bin/perl > printf( "%u\n" , time ) at a shell prompt: secs=`date +%s` in C: time_t secs = time(NULL); -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message