[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16386: maybe a small Bug in date?
From: |
thomas.dohl |
Subject: |
bug#16386: maybe a small Bug in date? |
Date: |
Tue, 7 Jan 2014 15:37:51 +0000 |
Hello,
could this be a bug in date?
date --version
date (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
bug report:
------------------------------------------------------
OK: date -> Tue Jan
7 16:27:06 CET 2014
OK: date +%V_%Y -d "last wednesday" -> 01_2014
OK: date +%V_%Y -d "last wednesday +1 week" -> 02_2014
...
OK: date +%V_%Y -d "last wednesday +51 week" -> 52_2014
WRONG: date +%V_%Y -d "last wednesday +52 week" -> 01_2014
This should be 01_2015: ^^^^
OK: date +%V_%Y -d "last wednesday +53 week" -> 02_2015
OK: date +%V_%Y -d "last wednesday +54 week" -> 03_2015
...
My system:
uname -a
Linux ... 2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
less /etc/redhat-release
CentOS release 6.5 (Final)
Thanks and best regards.
Thomas Dohl
Mit freundlichen Grüßen,
Soluvia IT-Services GmbH
Netz & Security / Rechenzentrum & Infrastruktur
Thomas Dohl
Telefon: +49 (0)621-290-3839
Fax: +49 (0)621-290-2677
E-Mail: address@hidden
Internet: www.soluvia-it-services.de
Soluvia IT-Services GmbH . Uhlenkrog 32 . 24113 Kiel
Büro Mannheim: Luisenring 49, 68159 Mannheim
Handelsregister-Nr. HRB 7458Ki, Sitz und Amtsgericht: Kiel
Geschäftsführer: Dr. Dirk Bevers, Dr. Simon Kalvoda
Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser E-Mail ist nicht gestattet.
smime.p7s
Description: S/MIME cryptographic signature
- bug#16386: maybe a small Bug in date?,
thomas.dohl <=