[local-time-devel] [Patch] Removes valid-date-p from the local-time library

Attila Lendvai attila.lendvai at gmail.com
Mon Nov 19 21:57:19 UTC 2007


> This patch removes the valid-date-p function from the library.  The
> function is only used in one place internally, and depends on an
> arbitrary definition of what is considered 'valid'.  It also conflicts
> with a function in tests.lisp, which has a stronger claim to validity.

the idea here was that it's easy to represent dates with local-time
objects if we define dates to be local-time's in the UTC timezone with
zero time part. that way all the time arithmetic works on them as
expected as long as this contract is hold.

i wasn't too happy about the name of the exported VALID-DATE-P but the
functionality is needed by one of our lib so i pushed it at the end.
but feel free to rename it or remove! i'll just copy it into our
dependent lib in that case, so that's fine with me.

-- 
 attila



More information about the local-time-devel mailing list