[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date

From: Jim Meyering
Subject: Re: date
Date: 21 Apr 2001 11:11:17 +0200
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.103

Bob Proulx <address@hidden> wrote:

| > date --version reports 2.0.

You may have better results with the latest test release.
See below.

| However, I think you have uncovered a different bug.
|   date -u -s 1401
|   Wed Apr 18 20:01:00 UTC 2001
|   date -u -s '1401 UTC'
|   Wed Apr 18 14:01:00 UTC 2001

Thanks to both of you for the reports.
Bob, what version of date are you using?  And on what type of system?
Using the latest test release


on a Linux system with libc-2.2.2, I don't see a problem:

  $ date +%z
  $ date -u -s 1401 2> /dev/null
  Sat Apr 21 14:01:00 UTC 2001
  $ date -u -s '1401 UTC'  2> /dev/null
  Sat Apr 21 14:01:00 UTC 2001

| I think those two should work exactly the same.  But perhaps I am
| confused as well.  The first case assumes 1401 is MDT and converts it
| to UTC before setting and printing.  I think date should assume 1401
| is UTC as in the second case.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]