Nic Ferrier <[EMAIL PROTECTED]> 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".


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to