From owner-freebsd-questions@FreeBSD.ORG Wed Jun 3 21:52:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FCB8106564A for ; Wed, 3 Jun 2009 21:52:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 600D68FC08 for ; Wed, 3 Jun 2009 21:52:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-65-8.dynamic.qsc.de [92.195.65.8]) by mx01.qsc.de (Postfix) with ESMTP id CBD2F3CFFC; Wed, 3 Jun 2009 23:52:24 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n53LqJE5002834; Wed, 3 Jun 2009 23:52:19 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 3 Jun 2009 23:52:19 +0200 From: Polytropon To: Kirk Strauser Message-Id: <20090603235219.2e8abb8a.freebsd@edvax.de> In-Reply-To: <200906031607.11697.kirk@strauser.com> References: <20090603230314.bfeecf1a.freebsd@edvax.de> <200906031607.11697.kirk@strauser.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Date representation as YY/DDD or YYYY/DDD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 21:52:26 -0000 On Wed, 3 Jun 2009 16:07:11 -0500, Kirk Strauser wrote: > Like this? > > $ date +'%y/%j' > 09/154 > $ date +'%Y/%j' > 2009/154 Exactly. After re-reading "man strftime", I really found it mentioned there: %j is replaced by the day of the year as a decimal number (001-366). Would be nice to have this in "man date", too. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...