From owner-freebsd-current Fri Dec 31 6: 7:30 1999 Delivered-To: freebsd-current@freebsd.org Received: from cichlids.com (as15-025.rp-plus.de [149.221.237.25]) by hub.freebsd.org (Postfix) with ESMTP id E2F3714EF4 for ; Fri, 31 Dec 1999 06:07:26 -0800 (PST) (envelope-from alex@cichlids.com) Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id BB185AB7F for ; Fri, 31 Dec 1999 15:07:54 +0100 (CET) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id PAA28696 for current@freebsd.org; Fri, 31 Dec 1999 15:08:29 +0100 (CET) (envelope-from alex) Date: Fri, 31 Dec 1999 15:08:29 +0100 From: Alexander Langer To: current@freebsd.org Subject: date(1) and -v-1m Message-ID: <19991231150829.A28634@cichlids.cichlids.com> Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! The behaviour of date(1) is probably specified by POSIX, but I think, date -v-1m should at least return a date a month _before_ the current month. Example: Mi 1 Dez 1999 15:06:47 CET (Dez. has 31, so it should be Nov 30, I think). More confusing is something like: alex:~ $ date -v-1m +%Y-%m 1999-12 what I wanted to use to create backup folders for my mail-system (all mails of the last month are moved to a folder of the last month). That's weird, somehow. Is this a bug or a feature? Is this POSIX-compilant? Do we want an additional option? (I want :-)) Alex -- I doubt, therefore I might be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message