From owner-freebsd-hackers Thu Jul 31 20:33:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA22153 for hackers-outgoing; Thu, 31 Jul 1997 20:33:40 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA22123 for ; Thu, 31 Jul 1997 20:33:30 -0700 (PDT) Received: from awfulhak.org (dev.lan.awfulhak.org [10.0.1.5]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id EAA04533; Fri, 1 Aug 1997 04:30:42 +0100 (BST) Received: from dev.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.6/8.8.6) with ESMTP id EAA06049; Fri, 1 Aug 1997 04:30:42 +0100 (BST) Message-Id: <199708010330.EAA06049@awfulhak.org> X-Mailer: exmh version 2.0zeta 7/24/97 To: Michael Smith cc: grog@lemis.com (Greg Lehey), brian@awfulhak.org, hackers@FreeBSD.ORG Subject: Re: date(1) In-reply-to: Your message of "Fri, 01 Aug 1997 12:33:59 +0930." <199708010304.MAA02188@genesis.atrad.adelaide.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 01 Aug 1997 04:30:41 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > This is what I proposed back at the beginning of the thread : something > like : > > date -f %H:%M:%S 12:31:00 > date -f %c%y,%m,%d 1997,Aug,1 > > etc, with some standard builtin templates for trying, eg : > > date -a "Fri 1 Aug 12:33:15 CST 1997" > > is the standard ctime format, one that's worth parsing. So who's lurking with the strptime() code ? > -- > ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ > ]] Genesis Software genesis@gsoft.com.au [[ > ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ > ]] realtime instrument control. (ph) +61-8-8267-3493 [[ > ]] Unix hardware collector. "Where are your PEZ?" The Tick [[ -- Brian , Don't _EVER_ lose your sense of humour....