[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unexpected behaviour date (coreutils) 5.2.1
From: |
Alex van den Bogaerdt |
Subject: |
unexpected behaviour date (coreutils) 5.2.1 |
Date: |
Mon, 24 Jan 2005 08:23:53 +0100 |
User-agent: |
Mutt/1.5.3i |
L.S.
When I'm doing something inappropriate please forgive me as I am
unaware of any rules or guidelines for submitting an error report.
Program: date, version 5.2.1
Platform: Fedora core 3
Kernel: 2.6.10-1.741_FC3
glibc: 2.3.4
Problem seen:
$ date -u -d 2005-03-20T01:00:00
Sat Mar 19 18:00:00 UTC 2005
Expected output:
Sun Mar 20 01:00:00 UTC 2005
Further experimenting shows the letter is considered to be
a timezone or something alike. However, a properly formatted
ISO8601 timestamp must have the "T" between date and time
(AFAIK) so the current behaviour seems to be wrong.
$ for i in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
do
echo -n "${i}: "
date -u -d 2005-03-20${i}01:00:00
done
A: Sun Mar 20 02:00:00 UTC 2005
B: Sun Mar 20 03:00:00 UTC 2005
C: Sun Mar 20 04:00:00 UTC 2005
D: Sun Mar 20 05:00:00 UTC 2005
E: Sun Mar 20 06:00:00 UTC 2005
F: Sun Mar 20 07:00:00 UTC 2005
G: Sun Mar 20 08:00:00 UTC 2005
H: Sun Mar 20 09:00:00 UTC 2005
I: Sun Mar 20 10:00:00 UTC 2005
J: date: invalid date `2005-03-20J01:00:00'
K: Sun Mar 20 11:00:00 UTC 2005
L: Sun Mar 20 12:00:00 UTC 2005
M: Sun Mar 20 13:00:00 UTC 2005
N: Sun Mar 20 00:00:00 UTC 2005
O: Sat Mar 19 23:00:00 UTC 2005
P: Sat Mar 19 22:00:00 UTC 2005
Q: Sat Mar 19 21:00:00 UTC 2005
R: Sat Mar 19 20:00:00 UTC 2005
S: Sat Mar 19 19:00:00 UTC 2005
T: Sat Mar 19 18:00:00 UTC 2005
U: Sat Mar 19 17:00:00 UTC 2005
V: Sat Mar 19 16:00:00 UTC 2005
W: Sat Mar 19 15:00:00 UTC 2005
X: Sat Mar 19 14:00:00 UTC 2005
Y: Sat Mar 19 13:00:00 UTC 2005
Z: Sun Mar 20 01:00:00 UTC 2005
regards,
alex
- unexpected behaviour date (coreutils) 5.2.1,
Alex van den Bogaerdt <=