From owner-freebsd-questions@FreeBSD.ORG Fri May 27 05:52:27 2005 Return-Path: X-Original-To: freebsd-questions@freeBSD.org 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 7D8FB16A41C for ; Fri, 27 May 2005 05:52:27 +0000 (GMT) (envelope-from bill@celestial.com) Received: from mail.mi.celestial.com (dagney.celestial.com [192.136.111.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54C2243D1F for ; Fri, 27 May 2005 05:52:27 +0000 (GMT) (envelope-from bill@celestial.com) Received: by mail.mi.celestial.com (Postfix, from userid 203) id C3C8411EE3B; Thu, 26 May 2005 22:53:27 -0700 (PDT) Date: Thu, 26 May 2005 22:53:27 -0700 From: Bill Campbell To: freebsd-questions@freeBSD.org Message-ID: <20050527055327.GA3284@alexis.mi.celestial.com> Mail-Followup-To: freebsd-questions@freeBSD.org References: <5c9b56eee08d6c984986cf48a9290c9f@san.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c9b56eee08d6c984986cf48a9290c9f@san.rr.com> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: ctime date X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2005 05:52:27 -0000 On Thu, May 26, 2005, Evan Sayer wrote: >Hello- >Does anyone know how to get the ctime(3) format of the date in a script >(i.e without actually writing a C program to return it). ctime=`perl -e 'printf qq(%d\n), time' ` Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ There are three kinds of men. The ones that learn by reading. The few who learn by observation. The rest of them have to pee on the electric fence for themselves. -- Will Rogers