[Top] [All Lists]

Re: variables: open issue a) date variables

2003-05-11 02:45:27

Kjetil Torgrim Homme <kjetilho(_at_)ifi(_dot_)uio(_dot_)no> writes:

I'll try to summarise in a new thread, so just a simple answer here.

[Marc Mutz]:

  > an ISO 8601 date comparator is not needed, since a normal string
  > compare is enough.

  Please explain why "a normal string compare" is enough to determine 
  which of the two dates
    Sat, 10 May 2003 21:18:44 +0200
    Sat, 10 May 2003 20:18:44 +0000
  is earlier.

those aren't on ISO 8601 format.  still, I forgot about time zones,
you'd need to normalise those before doing the string compare.

So a ISO 8601 date comparator is needed?

If I recall correctly, ISO 8601 has some quirks that may argue for a
ISO 8601 date comparator in Sieve.  E.g., 00:00 == 24:00; negative
time fields -10:30, time zones 00:00 == 24:00 (but different days?),
double negative time fields --30, fractional fields.  RFC 3339
disallow some of these though.