[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Date calculations bug
From: |
Andreas Schwab |
Subject: |
Re: Date calculations bug |
Date: |
Fri, 02 Dec 2005 19:48:01 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Stefan Alpers <address@hidden> writes:
> ---------------------------------
> address@hidden:>date +"%G-%m-%d"
> 2005-12-02
> address@hidden:>date -d +30days +"%G-%m-%d"
> 2005-01-01
$ date --help | grep %G
%G the year corresponding to the %V week number
$ date -d +30days +"week %V/%G"
week 52/2005
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."