From owner-freebsd-current@FreeBSD.ORG Wed Sep 8 11:58:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DCD216A4CE for ; Wed, 8 Sep 2004 11:58:54 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id B57AE43D2F for ; Wed, 8 Sep 2004 11:58:53 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i88BwkVf040172; Wed, 8 Sep 2004 13:58:51 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Bjoern A. Zeeb" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 08 Sep 2004 11:44:44 -0000." Date: Wed, 08 Sep 2004 13:58:46 +0200 Message-ID: <40171.1094644726@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: FreeBSD current mailing list Subject: Re: Idea for date(1) improvement. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 11:58:54 -0000 In message , "Bjo ern A. Zeeb" writes: >On Wed, 8 Sep 2004, Poul-Henning Kamp wrote: > >> I have sometimes needed to get the date of yesterday or last monday >> and so on for creating filenames. >> >> We have this very flexible code in at(1) and cvs(1) for specifying >> time. >> >> Anyone up for making it possible to say: >> >> date -w "2 days ago" >> >> ? > >-w ? isn't it -v ? date -v-2d ? I meant -w as a more flexible complement to the very restricted syntax of -v. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.