Date: Fri, 1 Aug 1997 12:33:59 +0930 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: grog@lemis.com (Greg Lehey) Cc: brian@awfulhak.org, hackers@FreeBSD.ORG Subject: Re: date(1) Message-ID: <199708010304.MAA02188@genesis.atrad.adelaide.edu.au> In-Reply-To: <199708010208.LAA08172@freebie.lemis.com> from Greg Lehey at "Aug 1, 97 11:38:39 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lehey stands accused of saying: > > Most newcomers to UNIX hate date(1) because the date entry format is > already too cryptic. This would just make it worse. There are some > other alternatives for date entry--tar uses one, for example, though > it may be GNU code. Why not base an implementation on one of those? 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. > Greg -- ]] 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 [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708010304.MAA02188>