[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Date doesn't accept its own ISO format date
From: |
Jon. Hallett |
Subject: |
Date doesn't accept its own ISO format date |
Date: |
Wed, 27 Jun 2001 12:27:04 +0100 |
Folks,
Not critical, but the date command's --date option won't accept date's own
ISO formatted output:
login[~]> date --date="`date --iso-8601=seconds`"
date: invalid date `2001-06-27T12:21:43+0100'
It appears that the T is the problem. --date works fine if the T is
replaced with a space:
login[~]> date --date="2001-06-27 12:21:43+0100"
Wed Jun 27 12:21:43 BST 2001
Some version information:
login[~]> uname -a
Linux login 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown
login[~]> date --version
date (GNU sh-utils) 2.0
Written by David MacKenzie.
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks,
Jon.
- Date doesn't accept its own ISO format date,
Jon. Hallett <=