From owner-freebsd-questions Tue Feb 4 08:10:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA23578 for questions-outgoing; Tue, 4 Feb 1997 08:10:06 -0800 (PST) Received: from mail.calweb.com (mail.calweb.com [208.131.56.11]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA23534 for ; Tue, 4 Feb 1997 08:09:59 -0800 (PST) Received: from devnull (devnull.calweb.com [208.131.56.69]) by mail.calweb.com (8.8.5/8.8.5) with SMTP id IAA10601; Tue, 4 Feb 1997 08:09:19 -0800 (PST) Message-Id: <3.0.32.19970204080811.009aa2d0@pop.calweb.com> Warning: Unsolicited Commercial Email (UCE) will be returned to send in bulk X-Sender: jfesler@pop.calweb.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 04 Feb 1997 08:08:19 -0800 To: Ray Cummins , freebsd-questions@FreeBSD.org From: Jason Fesler Subject: Re: time to seconds-since-epoch? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk At 10:07 AM 2/4/97 -0500, Ray Cummins wrote: > > Does anyone have a little program for FreeBSD that shows the current >time in seconds from the epoch? /bin/date +%s will return that info from the shell. #! /usr/bin/perl $epoch = $^T; # sets $epoch to a likewise value - see man perlvar # for details. Note this is the time of the start of # the script, not the current time. With C, "man 3 time" for details. -- Jason Fesler jfesler@calweb.com Internic: 'whois jf319' Admin, CalWeb Internet Services http://www.calweb.com Junk email returned, in bulk, back to sender; w/copies to all postmasters. You got junk mail problems? Use Eudora Pro, MSIE's mail, or 'man procmail'.