date command

2009-11-08 Thread Erez D
# date -d 'Mon 9/11 2:25 AM' Fri Sep 11 02:25:00 IDT 2009 but i want it to return: Mon Nov 9 02:25:00 IDT 2009 i tried setting LC_TIME but this didn't help. any idea ? cheers. erez. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs

Re: date command

2009-11-08 Thread Chaim Keren-Tzion
$ date -d 'Mon 11/9 2:25 AM' Mon Nov 9 02:25:00 IST 2009 Chaim On Mon, Nov 9, 2009 at 12:34 AM, Erez D wrote: > # date -d 'Mon 9/11 2:25 AM' > Fri Sep 11 02:25:00 IDT 2009 > > but i want it to return: > Mon Nov 9 02:25:00 IDT 2009 > > i tried setting LC_TIME but this didn't help. > > any id

Re: date command

2009-11-09 Thread Erez D
On Mon, Nov 9, 2009 at 1:26 AM, Chaim Keren-Tzion wrote: > $ dateĀ  -d 'Mon 11/9 2:25 AM' > Mon NovĀ  9 02:25:00 IST 2009 yes, that what i want, but that's not what i get. it thinks the 11/9 is september 11, instead of november 9 (i.e. 11/9 vs 9/11 format) what is your locale ? thanks, erez. > >

Re: date command

2009-11-09 Thread Ilya A. Volynets-Evenbakh
This is independent of locale. The get_date function simply treats xx/yy as US format according to "info date". Erez D wrote: > On Mon, Nov 9, 2009 at 1:26 AM, Chaim Keren-Tzion > wrote: > >> $ date -d 'Mon 11/9 2:25 AM' >> Mon Nov 9 02:25:00 IST 2009 >> > > > yes, that what i want, bu