bug#13372: bug in date with last week calculation

2013-01-06 Thread Tomas Dabašinskas
- Original Message - > Ah, in that case week 53 is correct, no? > > $ export TZ=Australia/Sydney; date; date -d'last week'; date -d'last > week' +%W > Mon Jan 7 13:41:02 EST 2013 > Mon Dec 31 13:41:02 EST 2012 > 53 > > Paul, I

bug#13372: bug in date with last week calculation

2013-01-06 Thread Paul Eggert
On 01/06/2013 06:18 PM, Tomas Dabašinskas wrote: > The time zone I'm using is GMT+10 (Australian East Std time). Ah, in that case week 53 is correct, no? $ export TZ=Australia/Sydney; date; date -d'last week'; date -d'last week' +%W Mon Jan 7 13:41:02 EST 2013 Mon Dec 31 13:41:02 EST 2012 53

bug#13372: bug in date with last week calculation

2013-01-06 Thread Tomas Dabašinskas
- Original Message - > Something odd with your time zone setting? > As I write this, the current time is > Sun Jan 6 20:59:42 EST 2013. > Paul, Many thanks for getting back. The time zone I'm using is GMT+10 (Australian East Std time). I'm sorry, I should have clarified this in my bug

bug#13372: bug in date with last week calculation

2013-01-06 Thread Paul Eggert
On 01/06/2013 03:48 PM, Tomas Dabašinskas wrote: > $ date > Mon Jan 7 09:46:19 EST 2013 Something odd with your time zone setting? As I write this, the current time is Sun Jan 6 20:59:42 EST 2013.

bug#13372: bug in date with last week calculation

2013-01-06 Thread Tomas Dabašinskas
Hi, I'm getting week number 53 when trying to get last week on Mon Jan 7 09:46:19 EST 2013: $ date Mon Jan 7 09:46:19 EST 2013 $ date -d'last week' +%W 53 Expecting to get week 1 Many thanks! -- Tomas Dabašinskas | Engineering Content Services | Red Hat Asia Pacific

bug#13071: Date and month ago

2012-12-03 Thread Bob Proulx
tag 13071 + notabug moreinfo close 13071 thanks Tuc at T-B-O-H wrote: > Hi, Hi! :-) > Running into a problem with date and month... Since you aren't really submitting a bug report but just asking questions I am going to go ahead here and mark the accounting of the bug as closed

bug#13071: Date and month ago

2012-12-03 Thread Tuc at T-B-O-H
Hi, Running into a problem with date and month... --- #!/bin/bash function example { rptdate=$(date +%Y-%m-%d -d "$1 -6 months") echo "6 months ago from $1 is ${rptdate}" } example 2012-09-30 example 2012-1

bug#13058: European date format

2012-12-02 Thread Bob Proulx
Ohad Basan wrote: > Hey Hey back! > Regarding 'date' command. > the -d parameter doesn't know how to receive a european date format > e.g. DD/MM/ I am assuming by "doesn't know how to receive" you mean it produces a different result than one you

bug#13058: European date format

2012-12-02 Thread Ohad Basan
Hey Regarding 'date' command. the -d parameter doesn't know how to receive a european date format e.g. DD/MM/ I believe that it is a bug. thanks you

bug#12995: syntax in documentation of date

2012-11-25 Thread Bob Proulx
tag 12995 + notabug close 12995 thanks Blabla Quentin wrote: > hello, I am an user of Xubuntu, and in the documentation (manual > page) of _date_, I've red a small syntax error in the details of > 'output format': > > if you write 'minute (00..59)' or 'hour (00..23)', I think you must > write 'se

bug#12995: syntax in documentation of date

2012-11-25 Thread Blabla Quentin
hello, I am an user of Xubuntu, and in the documentation (manual page) of _date_, I've red a small syntax error in the details of 'output format': if you write 'minute (00..59)' or 'hour (00..23)', I think you must write 'second (00..59)' instead of 'second (00..60)' too. regards

bug#12772: date : Bug in handling human readable dates

2012-11-01 Thread Nemo Maelstrom Thorx
---+ 1 row in set (0.00 sec) Colleagues inform me that postgresql behaves this way also, alongside python's mx.DateTime library (and ms-sql too). Conversely, sqlite, php behave like 'date' :) .../Nemo -- -

bug#12772: date : Bug in handling human readable dates

2012-10-31 Thread Eric Blake
tag 12772 notabug thanks On 10/31/2012 04:00 AM, Guido Ackermann wrote: > Hello, > today i discovered a bug in the programm "date" handling human readable > timeformats. > The bug: > > # date --version > date (GNU coreutils) 8.5 > > # export LC_ALL=&qu

bug#12772: date : Bug in handling human readable dates

2012-10-31 Thread Bob Proulx
tag 12772 + notabug moreinfo thanks Guido Ackermann wrote: > today i discovered a bug in the programm "date" handling human > readable timeformats. Thank you for the bug report. And also thank you very much for including the version you are using. However you are trippi

bug#12772: date : Bug in handling human readable dates

2012-10-31 Thread Guido Ackermann
Hello, today i discovered a bug in the programm "date" handling human readable timeformats. The bug: # date --version date (GNU coreutils) 8.5 # export LC_ALL="C" ;date Wed Oct 31 10:57:06 CET 2012 # export LC_ALL="C" ;date -d"last month" Mon Oct 1 11:5

bug#12650: Bug in date command

2012-10-14 Thread Bob Proulx
tags 12650 + moreinfo thanks Thiago Picharski wrote: > I'm trying run this command "date -d 12-10-21", but occur the follow > error, date: invalid date "12-10-21" > and finalize with error code 1. What timezone are you in? Almost certainly that timezone e

bug#12650: Bug in date command

2012-10-14 Thread Thiago Picharski
Hello, I'm trying run this command "date -d 12-10-21", but occur the follow error, date: invalid date "12-10-21" and finalize with error code 1. Interestingly, when i run "date -d 12-10-20" or "date -d 12-10-22" this work fine. Thanks! Thiago H. S. Picharski

bug#12162: [date] wrong time returned from provided relative date description

2012-09-12 Thread Bob Proulx
tags 12162 - moreinfo close 12162 thanks I haven't seen a response to this in a month. Therefore I am closing the ticket as resolved. If you have new information or clarification please feel free to continue the discussion. Bob

bug#12318: gnu date has incorrect date when using date math during a leap year

2012-08-31 Thread SciFi
h only the month and year to be presented. No "day" at all. The "A.I." implied would be rather simple: it's begging to say "I don't care about the Day, just deal with the Month [and Year] in this equation." By having just-this-much logic in GNU-date could

bug#12318: gnu date has incorrect date when using date math during a leap year

2012-08-31 Thread Bob Proulx
SciFi wrote: > I am just a passerby here. But when I see these specific > kinds of "errors", especially due to "month" usages, I always > have a thought: How would we make GNU-date to operate on the > Month Number Itself when we type "month" in the --d

bug#12318: gnu date has incorrect date when using date math during a leap year

2012-08-31 Thread Bob Proulx
John Mizell wrote: > gnu date has incorrect date when using date math during a leap year Thank you for the report. But this appears to be incorrect usage. > Here are the steps to reproduce Thank you very much for providing your reproducing steps. It makes diagnosis easy. So many peo

bug#12318: gnu date has incorrect date when using date math during a leap year

2012-08-31 Thread John Mizell
gnu date has incorrect date when using date math during a leap year Here are the steps to reproduce [jmizell@backdoor ~]$ date "+%m%Y" --date='1 month ago' 072012 [jmizell@backdoor ~]$ date "+%m%Y" --date='5 month ago' 032012 [jmizell@backdoor ~]$

bug#12162: [date] wrong time returned from provided relative date description

2012-08-09 Thread Bob Proulx
tags 12162 + moreinfo thanks Andris Pavenis wrote: > Noticed problems with command date: Thanks for the report. However I do not understand what problem you are trying to report. Showing the output that you expected would help. > [apavenis@callisto Test]$ ./date-test.sh > + date >

bug#12162: [date] wrong time returned from provided relative date description

2012-08-09 Thread Andris Pavenis
Noticed problems with command date: [apavenis@callisto Test]$ ./date-test.sh + date Thu Aug 9 10:16:31 EEST 2012 + date -d '2 weeks ago' Thu Jul 26 10:16:31 EEST 2012 + date -d 'thursday 2 weeks ago' Thu Jul 26 00:00:00 EEST 2012 + date -d 'next month' Sun Sep 9 1

bug#11866: command date doesn't accept 61 sec. minutes

2012-07-05 Thread Paul Eggert
marking this as done. >From bfda96e0ac5552bb1784f5e1dc311918ce077d50 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 5 Jul 2012 16:11:49 -0700 Subject: [PATCH 2/2] doc: document leap seconds better * doc/coreutils.texi (touch invocation, Time conversion specifiers) (Options for date, Examples of date): Index "leap secon

bug#11866: command date doesn't accept 61 sec. minutes

2012-07-05 Thread Juergen Heine
On 05/07/12 18:39, Eric Blake wrote: > retitle 11866 date doesn't accept 61-sec. minutes thank you for the correction. > The command 'date' doesn't have any control over whether your system is > configured to honor or ignore leap seconds. Some systems are > in

bug#11866: command date don't accept 61 sec. minutes

2012-07-05 Thread Eric Blake
retitle 11866 date doesn't accept 61-sec. minutes tag moreinfo thanks On 07/05/2012 02:15 AM, Juergen Heine wrote: > A positive leap second will be introduced at the end of June 2012. > The sequence of dates of the UTC second markers will be: > > 2012 June 30, 23h 59m 59

bug#11866: Acknowledgement (command date don't accept 61 sec. minutes)

2012-07-05 Thread Juergen Heine
Hello, can you please do me a favor and correct the typo in the title? don't -> doesn't Thank you for the GNU system! -- Mit freundlichen Grüßen / Sincerely i. A. Juergen Heine juergen.he...@qvs-deutschland.de QVS GmbH Lange Laube 18 D-30159 Hannover http://www.qvs-deutschland.de Tel: 05

bug#11866: command date don't accept 61 sec. minutes

2012-07-05 Thread Juergen Heine
UTC second markers will be: 2012 June 30, 23h 59m 59s 2012 June 30, 23h 59m 60s 2012 July 1, 0h 0m 0s ~snap~ The command 'date' doesn't calculate it. Test: $ date +%s -d "2012-06-30 23:59:60" date: invalid date `2012-06-30 23:59:60' Tested version: date (GN

bug#11843: acknowledged by developer (date -s with locale-dependent input: notabug)

2012-07-04 Thread Jim Meyering
;> + AC_REQUIRE([AC_C_INLINE]) > > Thanks, Bruno. > Here's the complete patch on the gnulib side: > (still to do in coreutils: NEWS, test and gnulib update) > > Subject: [PATCH] parse-datetime: fix failure to diagnose invalid input > > date -d "$(printf '\xb0&#x

bug#11843: acknowledged by developer (date -s with locale-dependent input: notabug)

2012-07-04 Thread Jim Meyering
ere's the complete patch on the gnulib side: (still to do in coreutils: NEWS, test and gnulib update) >From d8f90adf5f01512958b6da46bd5eea01294a434e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 4 Jul 2012 12:58:07 +0200 Subject: [PATCH] parse-datetime: fix failure to diagnose invalid

bug#11843: acknowledged by developer (date -s with locale-dependent input: notabug)

2012-07-04 Thread Bruno Haible
Jim Meyering wrote: > +static inline unsigned char to_uchar (char ch) { return ch; } For the use of 'inline', one needs this too: --- m4/parse-datetime.m4.orig Wed Jul 4 10:04:43 2012 +++ m4/parse-datetime.m4Wed Jul 4 10:04:36 2012 @@ -1,4 +1,4 @@ -# parse-datetime.m4 serial 19 +# pa

bug#11843: acknowledged by developer (date -s with locale-dependent input: notabug)

2012-07-04 Thread Jim Meyering
peter evans wrote: > Thank you for closing this as "not a bug". > > So it is not a bug that date is unable to parse its own output in > arbitrary locales. > Indeed, it would "not be a bug" if it stopped and complained about > it. That would be > perfectly

bug#11843: date -s vs encoding bug.

2012-07-03 Thread Jim Meyering
Bob Proulx wrote: ... > I updated the 'date' FAQ section with an example of this type of usage. > > > http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e Nice. Thanks, Bob!

bug#11843: date -s vs encoding bug.

2012-07-02 Thread Bob Proulx
Jim Meyering wrote: > Andreas Schwab wrote: > > Jim Meyering writes: > >> To get the behavior you want (a nominally no-op date-setting command), > >> you should use this instead: > >> > >> date -s "$(date '+%F %T.%N')" >

bug#11843: date -s vs encoding bug.

2012-07-02 Thread Jim Meyering
Andreas Schwab wrote: > Jim Meyering writes: > >> To get the behavior you want (a nominally no-op date-setting command), >> you should use this instead: >> >> date -s "$(date '+%F %T.%N')" > > That fails to be a no-op during the ambigo

bug#11843: date -s vs encoding bug.

2012-07-02 Thread Andreas Schwab
Jim Meyering writes: > To get the behavior you want (a nominally no-op date-setting command), > you should use this instead: > > date -s "$(date '+%F %T.%N')" That fails to be a no-op during the ambigous end-of-dst period. Better use an unambigous f

bug#11843: date -s vs encoding bug.

2012-07-02 Thread Jim Meyering
erver 1.2.3.4 offset -0.002628 > sec > [root@x]# date > 2012年 7月 2日 月曜日 16:14:10 JST > [root@x]# date -s "`date`" > 2012年 7月 2日 月曜日 20:12:00 JST > [root@x]# ntpdate ntp.server > 2 Jul 16:14:15 ntpdate[18856]: step time server 1.2.3.4 offset -14268.134688 > se

bug#11798: touch date bug

2012-06-27 Thread Bob Proulx
Eric Blake wrote: > Patrick Castet wrote: > > $ touch a0.a > > $ touch -d "2102 03:04:05" a0.a > > if you check with widows cmd, you get > > a0.a is dated with 2102 04:04 > > > > wich is not correct ! > > Welcome to the joys of Microsoft's decision to store file timestamps > with respe

bug#11798: touch date bug

2012-06-27 Thread Eric Blake
tag 11798 notabug thanks On 06/27/2012 03:52 AM, Patrick Castet wrote: > $ touch a0.a > $ touch -d "2102 03:04:05" a0.a Thanks for the report. > if you check with widows cmd, you get I assume you meant Windows, not widows. > > a0.a is dated with 2102 04:04 > > > wich is not corr

bug#11798: touch date bug

2012-06-27 Thread Paul Eggert
On 06/27/2012 02:52 AM, Patrick Castet wrote: > touch -d "2102 03:04:05" a0.a This works for me, on GNU/Linux: $ touch -d "2102 03:04:05" a0.a $ ls -l --full-time a0.a -rw-r--r--. 1 eggert eggert 0 2000-01-02 03:04:05.0 -0800 a0.a I expect the problem that you're having with Wind

bug#11798: touch date bug

2012-06-27 Thread Patrick Castet
bug-coreutils@gnu.org Hi,  if you try this $ touch a0.a $ touch -d "2102 03:04:05" a0.a you get $ ls -la a0.a -rw-r--r-- 1 dmi Aucun 0  2 janv.  2000 a0.a AND if you check with widows  cmd, you get  C:\cygwin\tmp>dir  Le volume dans le lecteur C n'a pas de nom.  Le numéro de série du

bug#11667: problem with command date

2012-06-10 Thread Alan Curry
amanda sabatini writes: > > Hi, > > The follow command does not work with the specifics date: 1986-10-25; > 1987-10-25; 1989-10-15; 1992-10-25; 1991-10-20; 1995-10-15; 2006-11-05. > > date +%d --date="1986-10-25" The date command never actually works on date

bug#11667: problem with command date

2012-06-10 Thread amanda sabatini
Hi, The follow command does not work with the specifics date: 1986-10-25; 1987-10-25; 1989-10-15; 1992-10-25; 1991-10-20; 1995-10-15; 2006-11-05. date +%d --date="1986-10-25" Sincerely, Amanda Sabatini Dufek

bug#11125: date command calculations are not consistent

2012-03-30 Thread Thomas R. Schaefer
Thanks Eric & Bob.  Good stuff.  I'm still slightly foggy on why I get different answers subtracting 35 days from seemingly the same point in time.. [tschaefer@schaefer-test ~]$ date  -d 'last Thursday' Thu Mar 29 00:00:00 CDT 2012 [tschaefer@schaefer-test ~]$ date  -d '

bug#11125: date command calculations are not consistent

2012-03-29 Thread Bob Proulx
Eric Blake wrote: > Thomas R. Schaefer wrote: > > In this case date does take DST into account in a relative date operation.. > > > > [root@schaefer-test ~]# date -d "last Thursday - 21 days" > > Thu Mar 1 00:00:00 CST 2012 > > But notice what date -

bug#11125: date command calculations are not consistent

2012-03-29 Thread Eric Blake
On 03/29/2012 12:34 PM, Thomas R. Schaefer wrote: > In this case date is calculating with 24 hours days regardless of crossing a > DST boundary.. > > [root@schaefer-test ~]# date -d "Thu Mar 22 00:00:00 CDT 2012 - 21 days" > Wed Feb 29 23:00:00 CST 2012 This starte

bug#11125: date command calculations are not consistent

2012-03-29 Thread Thomas R. Schaefer
Thank you, I really appreciate your suggestion and will use it in my script.  That will solve my problem. I can appreciate the consensus that "relative date operations add or subtract in multiples of 24 hours, without regards to daylight savings boundaries".  In fact I would be i

bug#11125: date command calculations are not consistent

2012-03-29 Thread Eric Blake
forcemerge 11098 11125 thanks On 03/29/2012 11:43 AM, Thomas R. Schaefer wrote: > Discovered this when I script I have cronned to run at 12:01AM gave some > unexpected results. > > After much picking at it I finally figured out that the date command itself > was the source of

bug#11125: date command calculations are not consistent

2012-03-29 Thread Thomas R. Schaefer
Discovered this when I script I have cronned to run at 12:01AM gave some unexpected results. After much picking at it I finally figured out that the date command itself was the source of my problem.  It isn't handling date calculations that span the daylight savings time change consist

bug#11115: linux date arithmetic

2012-03-29 Thread Bruno Haible
Eric Blake wrote: > > "10:38 minute" or "12:38 minute" is not a time designation I have ever heard > > in spoken nor written English. > > True, 'minute' in isolation, without a 'plus one' qualifier, is unusual; > but we have to continue to parse it in isolation since scripts may now > be relying o

bug#11115: linux date arithmetic

2012-03-28 Thread Ruediger Meier
On Wednesday 28 March 2012, Eric Blake wrote: > On 03/28/2012 03:23 PM, Bruno Haible wrote: > > Eric Blake wrote: > >> the parser is faced with an ambiguity between: > >> > >> (11:38 +1) minute > >> 11:38 (+1 minute) > > > > What is the first interpretation meant to mean? > > The time 11:38 in the

bug#11115: linux date arithmetic

2012-03-28 Thread Bruno Haible
Eric Blake wrote: > the parser is faced with an ambiguity between: > > (11:38 +1) minute > 11:38 (+1 minute) What is the first interpretation meant to mean? "10:38 minute" or "12:38 minute" is not a time designation I have ever heard in spoken nor written English. If you ditch this interpretatio

bug#11115: linux date arithmetic

2012-03-28 Thread Eric Blake
On 03/28/2012 03:23 PM, Bruno Haible wrote: > Eric Blake wrote: >> the parser is faced with an ambiguity between: >> >> (11:38 +1) minute >> 11:38 (+1 minute) > > What is the first interpretation meant to mean? The time 11:38 in the timezone UTC+1, plus the unit represented by 'minute'. > "10:38

bug#11115: linux date arithmetic

2012-03-28 Thread Ruediger Meier
On Wednesday 28 March 2012, Eric Blake wrote: > [adding bug-gnulib] > > On 03/28/2012 06:39 AM, Stefan Karamuz wrote: > > Please check the 2 linux commands: > > > > date -d "$(date +%F\ %H:%M:%S)" +%F\ %H:%M:%S > > date -d "$(date +%F\ %H:%M

bug#11115: linux date arithmetic

2012-03-28 Thread Eric Blake
[adding bug-gnulib] On 03/28/2012 06:39 AM, Stefan Karamuz wrote: > Please check the 2 linux commands: > > date -d "$(date +%F\ %H:%M:%S)" +%F\ %H:%M:%S > date -d "$(date +%F\ %H:%M:%S) + 1 minute" +%F\ %H:%M:%S > > It's very confusing, because the

bug#11115: linux date arithmetic

2012-03-28 Thread Stefan Karamuz
Please check the 2 linux commands: date -d "$(date +%F\ %H:%M:%S)" +%F\ %H:%M:%S date -d "$(date +%F\ %H:%M:%S) + 1 minute" +%F\ %H:%M:%S It's very confusing, because the results of the two commands differ in one hour and one minute, except of one minute only. [~]$ d

bug#11098: date --yesterday wrong result

2012-03-26 Thread Eric Blake
tag 11098 notabug thanks On 03/26/2012 05:31 AM, Hugo Guérineau wrote: > Dear Mister, Madam, > > I'm writing to report a date computation problem. > > The command "date --date='yesterday' +%Y-%m-%d" launched this morning > between 0:00 am and 0:59 a

bug#11098: date --yesterday wrong result

2012-03-26 Thread Hugo Guérineau
Dear Mister, Madam, I'm writing to report a date computation problem. The command "date --date='yesterday' +%Y-%m-%d" launched this morning between 0:00 am and 0:59 am gives the wrong result: root@serveur:> date --date='today' +%Y-%m-%d; date --date='

bug#11057: Having an issue with the date program

2012-03-21 Thread Eric Blake
tag 11057 notabug thanks On 03/21/2012 11:26 AM, Morin, Rick wrote: > Hello, > > I'm having an interesting time trying to get the following code to work using > your coreutils date program. I'm trying to get the date for Wednesday of the > current week. This is runn

bug#11057: Having an issue with the date program

2012-03-21 Thread Morin, Rick
Hello, I'm having an interesting time trying to get the following code to work using your coreutils date program. I'm trying to get the date for Wednesday of the current week. This is running in a Korn shell on an AIX 5.3 (AIX 64) platform. MDOW1=$(${SBIN}/date +%w) let MDOW=$M

bug#10699: bug of `date`: why 1/1/2012 is the second week of 2012?

2012-02-02 Thread Paul Eggert
On 02/02/2012 12:25 AM, Wang, YuanTao wrote: > $ date -d "2012-01-01 00:00:00" +%U > 01 > > but in "man date" > %U week number of year, with Sunday as first day of week (00..53) > > Is it a bug? No. As the manual (which has more detail) says, "

bug#10699: bug of `date`: why 1/1/2012 is the second week of 2012?

2012-02-02 Thread Wang, YuanTao
$ date -d "2012-01-01 00:00:00" +%U 01 but in "man date" %U week number of year, with Sunday as first day of week (00..53) Is it a bug? $ uname -r 2.6.18-128.1.6.el5xen

bug#10455: Date: Possible bug in ISO-8601 formatted dates

2012-01-09 Thread Dotan Cohen
On Tue, Jan 10, 2012 at 07:12, Bob Proulx wrote: > For you I would actually give you a login on one of my systems.  But > instead how about if I send you a 'date' that is backported to > Squeeze?  Even though you say you love-to-hate it? :-)  Then you can > play with

bug#10455: Date: Possible bug in ISO-8601 formatted dates

2012-01-09 Thread Bob Proulx
check. If > you would like me to confirm now do you have a system with a recent > GNU Tools that I could SSH into? For you I would actually give you a login on one of my systems. But instead how about if I send you a 'date' that is backported to Squeeze? Even though you say you lo

bug#10455: Date: Possible bug in ISO-8601 formatted dates

2012-01-09 Thread Dotan Cohen
On Mon, Jan 9, 2012 at 08:49, Bob Proulx wrote: > GNU date didn't learn how to handle ISO-8601 until very recently. > Your version 8.5 doesn't have that code yet.  Here is the NEWS file > entry for the change as it went into the recent 8.13 release. > Thanks, Bob. Have a gr

bug#10455: Date: Possible bug in ISO-8601 formatted dates

2012-01-08 Thread Bob Proulx
Dotan Cohen wrote: > It seems that ISO-8601 formated dates are not properly handled by the > date utility. GNU date didn't learn how to handle ISO-8601 until very recently. Your version 8.5 doesn't have that code yet. Here is the NEWS file entry for the change as it went into

bug#10455: Date: Possible bug in ISO-8601 formatted dates

2012-01-08 Thread Dotan Cohen
It seems that ISO-8601 formated dates are not properly handled by the date utility. The date utility seems to erroneously add timezone-shifting when using ISO-8601 dates. This example is fine (see the date roundtrip to back where it started): ✈saturn:~$ date +%s -d "2006-12-31 22:00" 11

bug#10413: Invalid date result in specific date operations

2011-12-31 Thread Eric Blake
tag 10413 notabug thanks On 12/29/2011 11:02 AM, Vicente Pérez M wrote: > How to repeat: > > > date -d '2011-08-21 + 1 DAY' +%Y-%m-%d > date -d '2010-10-10 + 1 DAY' +%Y-%m-%d > > These dates is just when change from normal time UTC-4 to dts UCT-

bug#10413: Invalid date result in specific date operations

2011-12-31 Thread Vicente Pérez M
How to repeat: date -d '2011-08-21 + 1 DAY' +%Y-%m-%d date -d '2010-10-10 + 1 DAY' +%Y-%m-%d These dates is just when change from normal time UTC-4 to dts UCT-3 result: invalid date The same operation with --utc works fine. date -d '2011-08-21 + 1 DAY' +%Y-%m-%d

bug#10182: Century bug in date utility?

2011-12-01 Thread Bob Proulx
Krzysztof Kowalski wrote: > For a test I changed system time to 1997 and date utility returned 20 > century as well :) Of course you know you don't need to change the system time to test this. You can do it easily with date. $ date -d '1997-01-01 12:00 UTC' +%C 19 Bob

bug#9718: bugs in `date` command?

2011-10-16 Thread Voelker, Bernhard
gt; > the grammar to accept both common meanings of "second" depending on > > the context where it appears compared to the rest of the date. > > Just in case, I've marked this as "wishlist". > If you're interested, please add it to TODO. > If not, pl

bug#9718: bugs in `date` command?

2011-10-14 Thread Jim Meyering
ove > the grammar to accept both common meanings of "second" depending on > the context where it appears compared to the rest of the date. Just in case, I've marked this as "wishlist". If you're interested, please add it to TODO. If not, please close this.

bug#9718: bugs in `date` command?

2011-10-11 Thread Eric Blake
On 10/11/2011 01:31 AM, Voelker, Bernhard wrote: Bryan Lee wrote: The term "third wednesday" seems to be evaluating incorrectly. glaive 12:24:56 [~]% date Mon Oct 10 12:24:59 EDT 2011 glaive 12:24:59 [~]% date -d "first wednesday" Wed Oct 12 00:00:00 EDT 2011 glaive 1

bug#9718: bugs in `date` command?

2011-10-11 Thread Voelker, Bernhard
Bryan Lee wrote: > The term "third wednesday" seems to be evaluating incorrectly. > > glaive 12:24:56 [~]% date > Mon Oct 10 12:24:59 EDT 2011 > > glaive 12:24:59 [~]% date -d "first wednesday" > Wed Oct 12 00:00:00 EDT 2011 > > glaive 12:25:09 [

bug#9718: bugs in `date` command?

2011-10-10 Thread Bryan Lee
The term "third wednesday" seems to be evaluating incorrectly. glaive 12:24:56 [~]% date Mon Oct 10 12:24:59 EDT 2011 glaive 12:24:59 [~]% date -d "first wednesday" Wed Oct 12 00:00:00 EDT 2011 glaive 12:25:09 [~]% date -d "second wednesday" Wed Oct 12 00:0

bug#9614: date ignoring wrong TZ values

2011-09-29 Thread Sandro Santilli
On Wed, Sep 28, 2011 at 11:04:11PM +0200, Andreas Schwab wrote: > Sandro Santilli writes: > > > On Wed, Sep 28, 2011 at 12:19:22AM +0200, Andreas Schwab wrote: > >> Pádraig Brady writes: > >> > >> > $ TZ=Japan+1 date > >> > >>

bug#9614: date ignoring wrong TZ values

2011-09-28 Thread Andreas Schwab
Sandro Santilli writes: > On Wed, Sep 28, 2011 at 12:19:22AM +0200, Andreas Schwab wrote: >> Pádraig Brady writes: >> >> > $ TZ=Japan+1 date >> >> This is a well-formed POSIX timezone. > > Meaning UTC+1 ? The timzone name has no meaning, only

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Paul Eggert
y determine whether the current TZ value is supported. So it's not clear how that warning would be generated. Also, lots of programs use TZ; it's not just "date".

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
On Wed, Sep 28, 2011 at 12:19:22AM +0200, Andreas Schwab wrote: > Pádraig Brady writes: > > > $ TZ=GB-Eire+1 date > > A POSIX timezone name cannot have dashes. Doesn't all these "can't have" and "undefined" specs mean we do can warn or error o

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
On Tue, Sep 27, 2011 at 11:52:22PM +0200, Andreas Schwab wrote: > Pádraig Brady writes: > > > On 09/27/2011 03:09 PM, Sandro Santilli wrote: > >> I've been puzzled by date(1) giving weird results > >> when setting TZ to values unknown by zoneinfo. > >>

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Andreas Schwab
Pádraig Brady writes: > $ TZ=GB-Eire+1 date A POSIX timezone name cannot have dashes. > $ TZ=Japan+1 date This is a well-formed POSIX timezone. > $ TZ=Japan date This is a non-POSIX timezone that happens to match an Olson timezone. Andreas. -- Andreas Schwab, sch...@linux-m68

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Pádraig Brady
On 09/27/2011 10:47 PM, Andreas Schwab wrote: > Pádraig Brady writes: > >> $ TZ=NZ+1 date # No zone reported > > This is undefined. A zone name in a POSIX time zone must have at least > three letters. I considered that, but it seems inconsequential in this case. I&#x

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Andreas Schwab
Pádraig Brady writes: > $ TZ=NZ+1 date # No zone reported This is undefined. A zone name in a POSIX time zone must have at least three letters. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for s

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Andreas Schwab
Pádraig Brady writes: > On 09/27/2011 03:09 PM, Sandro Santilli wrote: >> I've been puzzled by date(1) giving weird results >> when setting TZ to values unknown by zoneinfo. >> >> As far as: >> >> $ TZ=Fake date >> Tue Sep 27 14:06:32 Fa

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Pádraig Brady
On 09/27/2011 07:19 PM, Pádraig Brady wrote: > On 09/27/2011 03:09 PM, Sandro Santilli wrote: >> I've been puzzled by date(1) giving weird results >> when setting TZ to values unknown by zoneinfo. >> >> As far as: >> >> $ TZ=Fake date >> Tue Sep

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
On Tue, Sep 27, 2011 at 07:19:12PM +0100, Pádraig Brady wrote: > On 09/27/2011 03:09 PM, Sandro Santilli wrote: > > I've been puzzled by date(1) giving weird results > > when setting TZ to values unknown by zoneinfo. > > > > As far as: > > > > $ TZ=

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Pádraig Brady
On 09/27/2011 03:09 PM, Sandro Santilli wrote: > I've been puzzled by date(1) giving weird results > when setting TZ to values unknown by zoneinfo. > > As far as: > > $ TZ=Fake date > Tue Sep 27 14:06:32 Fake 2011 Yes, that is per POSIX. One can specify info about

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
I've been puzzled by date(1) giving weird results when setting TZ to values unknown by zoneinfo. As far as: $ TZ=Fake date Tue Sep 27 14:06:32 Fake 2011 It would be more helpful if the command raised an error or warning about "unknown" timezones rather than giving rand

bug#6642: Date manipulation is not working after patching our Centos 4.8 server

2011-08-24 Thread Bob Proulx
It has been a year in the bug tracker system without any response. So I am assuming the issue is no longer relevant. Closing the bug. Bob Bob Proulx wrote: > Sandoval, Juan wrote: > > vhost01.dca.int: ~ % /usr/local/gnu/bin/date --date "7 days + 11-jul-2010" > >

bug#9283: date increment failure for 2011-10-30

2011-08-11 Thread Eric Blake
tag 9283 notabug thanks On 08/11/2011 04:52 AM, mike1@hsbcib.com wrote: Here's what I found adding +1 days to a 2011-10-30 (BTW this is not a problem for any other date I tried) Thanks for the report. However, this is not a bug, but a consequence of daylight savings in your cu

bug#9283: date increment failure for 2011-10-30

2011-08-11 Thread Paul Eggert
My guess is that, in your time zone, 24 hours after midnight on 10-30 is indeed 10-31, due to daylight-saving switch. You can verify this by running 'date' without the '+' option.

bug#9283: date increment failure for 2011-10-30

2011-08-11 Thread mike1 . lee
Here's what I found adding +1 days to a 2011-10-30 (BTW this is not a problem for any other date I tried) fut=$(date -d"2011-10-30" '+%F') ; echo $fut 2011-10-30 fut=$(date -d"$fut +1 days" '+%F') ; echo $fut 2011-10-30 fut=$(date -d"$fu

bug#8372: date - Summer Time Shift Problem.

2011-07-28 Thread Bob Proulx
Bob Proulx wrote: > Please see this FAQ entry for detailed explanation and hints on how to > avoid this problem. > > > http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e Since there hasn't been any feedback on this bug since March I ass

bug#8695: I have error on date (+8 m) and i

2011-07-24 Thread Jim Meyering
you are asking. > > Possibly you are tripping up on a FAQ? > http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e > > Please demonstrate what you typed, what 'date' actually output, and what > you were expecting 'date' to output.

bug#8241: closed (Date does not exist in that timezone)

2011-07-10 Thread jidanni
GbTS> Well, there's your answer. You were probably asking for a date/time that GbTS> did not exist due to the daylight savings time skip. OK, but maybe the error message should give more details, as it would usually be very hard for the user to guess such a rare occurrence.

bug#8241: Date does not exist in that timezone

2011-07-10 Thread Benoît Knecht
jida...@jidanni.org wrote: > By the way, America is undergoing a Daylight Savings Time jump right > about now. Well, there's your answer. You were probably asking for a date/time that did not exist due to the daylight savings time skip. -- Benoît Knecht

bug#8930: $date +%C

2011-06-25 Thread James Youngman
ints the century, for example 21. It turns out that it doesn't. From the documentation: %C century; like %Y, except omit last two digits (e.g., 20) I agree though that using the word "century" here is misleading. > date (GNU coreutils) 8.5 > Copyright © 2010

bug#8930: date +%C

2011-06-24 Thread Eric Blake
On 06/24/2011 01:52 PM, Eric Blake wrote: > %C does not mean the century in common parlance, rather, according to > POSIX, it means: > > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/date.html > >> >> %C >> Century (a year divided by 100 and truncated to an integer) as a decimal

bug#8930: date +%C

2011-06-24 Thread Eric Blake
tag 8930 notabug thanks > ~$ *date* > vendredi 24 juin 2011, 20:32:50 (UTC+0200) > ~$ *date +%C* > 20 > > > *# 21st Century !* > Thanks for the report. However, this is not a bug. %C does not mean the century in common parlance, rather, according t

<    1   2   3   4   5   6   7   8   9   10   >