RE: date vs. date-time

2003-06-05 Thread Larry Osterman
IIRC, the reason is that for searches, it is very often useful to have a
search whose criteria is received on Tuesday as opposed to received
on Tuesday at 3:17PM


Larry Osterman 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
 Behalf Of Arnt Gulbrandsen
 Sent: Wednesday, June 04, 2003 10:46 AM
 To: [EMAIL PROTECTED]
 Subject: date vs. date-time
 
 date-time is used a few times in the grammar, but in SEARCH date is
 used, e.g. SINCE date, not SINCE date-time. Is there any particular
 reason for that?
 
 Just curious.
 
 --Arnt
 --
 -
  For information about this mailing list, and its archives, see:
  http://www.washington.edu/imap/imap-list.html
 -
 




Re: date vs. date-time

2003-06-05 Thread Arnt Gulbrandsen
Mark Crispin writes:
On Wed, 4 Jun 2003, Arnt Gulbrandsen wrote:
 date-time is used a few times in the grammar, but in SEARCH date is 
 used, e.g. SINCE date, not SINCE date-time. Is there any particular 
 reason for that?
Yes. When IMAP was first defined, times and timezones were much less 
reliable than they are today.

Also, do you really want to search for a message on the exact second? 
That's what a date-time search would be. I suspect that what you want 
is a fuzzier search at about a particular time.
No - I was just curious. I'd have liked to have date-time, but merely 
since I would then generate fewer different grammar elements. No big 
deal.

But in the case of the sent-on date/time, do you use the sender's 
timezone, the timezone of the sender's mail injection point, or your 
own timezone (all three of which can be different!)?
For me, date has all the same problems. *shrug* Implementations differ.

Once you think about it, you realize that it's much more complicated 
than it seems at first glance. IMAP punts on all of this; a date-only 
SEARCH gives you a 24 hour fuzz (a 48-hour fuzz using a combination 
of SINCE and BEFORE may be safer than ON) and then the client can 
zoom in depending upon the client's design.
Makes sense. Thanks.

--Arnt