From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 22:07:55 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FCE116A4B3 for ; Mon, 22 Sep 2003 22:07:55 -0700 (PDT) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E12843FDD for ; Mon, 22 Sep 2003 22:07:52 -0700 (PDT) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.22) id 1A1fOw-0009zy-Ho for freebsd-questions@freebsd.org; Tue, 23 Sep 2003 06:07:50 +0100 Date: Tue, 23 Sep 2003 06:07:50 +0100 From: Jez Hancock To: FreeBSD Questions List Message-ID: <20030923050750.GA38213@users.munk.nu> Mail-Followup-To: FreeBSD Questions List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Unix timestamp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jez.hancock@munk.nu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2003 05:07:55 -0000 Is there a native FreeBSD shell util for returning the time in seconds since the Unix epoch? date(1) doesn't seem to do this, only the converse with the -r switch: [6:05:51] munk@users /home/munk# date -r "1064293551" Tue Sep 23 06:05:51 BST 2003 Just curious - I ended up making a simple C app that does the job. -- Jez http://www.munk.nu/