date command

date command

Erez D erez0001 at gmail.com
Mon Nov 9 10:56:40 IST 2009


On Mon, Nov 9, 2009 at 1:26 AM, Chaim Keren-Tzion <chaim at intercomp.co.il> 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.
>
> Chaim
>
> On Mon, Nov 9, 2009 at 12:34 AM, Erez D <erez0001 at gmail.com> 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 idea ?
>>
>> cheers.
>> erez.
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>



More information about the Linux-il mailing list