From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 22:27:16 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 9D6BA16A4B3 for ; Mon, 22 Sep 2003 22:27:16 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D034B43F75 for ; Mon, 22 Sep 2003 22:27:13 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h8N5RAw6098208 for freebsd-questions@freebsd.org; Tue, 23 Sep 2003 00:27:10 -0500 (CDT) (envelope-from dan) Date: Tue, 23 Sep 2003 00:27:10 -0500 From: Dan Nelson To: FreeBSD Questions List Message-ID: <20030923052709.GC93568@dan.emsphone.com> References: <20030923050750.GA38213@users.munk.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030923050750.GA38213@users.munk.nu> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Subject: Re: Unix timestamp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2003 05:27:16 -0000 In the last episode (Sep 23), Jez Hancock said: > 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 $ date -r 1064293551 +%s 1064293551 $ date +%s 1064294819 -- Dan Nelson dnelson@allantgroup.com