[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: date parsing of european dates
From: |
Paul Eggert |
Subject: |
Re: date parsing of european dates |
Date: |
Fri, 13 May 2005 16:18:57 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Nic Ferrier <address@hidden> writes:
> GNU date does not allow the date parsing pattern to be specified on
> the command line.
Yes.
> Neither does it allow use of the DATEMSK env var to hack the behaviour
> of the internal call to the C library's getdate().
Yes.
> Neither does it change the parsing of dates based on the environment
> locale variables, eg: LC_TIME
Yes.
> Thus:
>
> $ LC_TIME=en_GB.utf8 date --date "12/05/2005"
> Mon Dec 5 00:00:00 GMT 2005
>
> but what it should really output is:
>
> Thu May 5 00:00:00 BST 2005
>
>
> Are my assertions incorrect or is it indeed impossible to parse this
> date with the semantics that I want?
I'm afraid you'll have to reformulate the date yourself, before you
give it to GNU date. E.g., "date --date 2005-05-12".