]] Bob Proulx 

| severity 589909 wishlist
| thanks
| 
| Tollef Fog Heen wrote:
| > It seems like date(1) is somewhat confused about what «this week» means:
| > 
| > : tfheen@qurzaw ~ > LC_MESSAGES=en_US.UTF-8 date
| > Thu Jul 22 09:37:31 CEST 2010
| > : tfheen@qurzaw ~ > LC_MESSAGES=en_US.UTF-8 date -d 'Monday this week'
| > Mon Jul 26 00:00:00 CEST 2010
| > 
| > I would quite clearly argue that «Monday this week» is the 19th, not the
| > 26nd.
| 
| The date parsing authors fell into the common trap of trying to write
| a program to understand human language but doing so without a human.
| There are so many traps!

Indeed.  First, thanks for your long explanation, it does explain a bit
about why I was confused.

I wonder if it would make sense to just invent a more precise language
people could use to specify the time of day, particularly for use in
scripts and use that, rather than trying to parse English (which is
hard, even for humans).  I guess that's kinda what you already have in
that you can do 'last week + Monday' and similar.

Regards,
-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to