
Hi folks. I don't keep a list of people who use NormalDate, a simple Python date class, but Dan Winkler reminded me today that I neglected to put in __add__, __sub__ methods. For anyone using it, the latest version is available: http://starship.python.net/crew/jbauer/normalDate/
From the docstring:
NormalDate is a specialized class to handle dates without all the excess baggage (time zones, daylight savings, leap seconds, etc.) of other date structures. The minimalist strategy greatly simplifies its implementation and use. Internally, NormalDate is stored as an integer with values in a discontinuous range of -99990101 to 99991231. The integer value is used principally for storage and to simplify the user interface. Internal calculations are performed by a scalar based on Jan 1, 1900. For people who are serious about their date calculations, I'd recommend Marc-Andre Lemburg's mxDateTime: http://starship.python.net/crew/lemburg/mxExtensions.html For people who aren't so serious about their date calculations, check out: http://www.pauahtun.org The Python distribution also includes a date class, which would have saved me time, had I bothered to check. Demo/classes/Dates.py --- Jeff Bauer Rubicon Research <P><A HREF="http://starship.python.net/crew/jbauer/normalDate/">normalDate 0.7</A> - updated version of Jeff Bauer's ''NormalDate'' class for date calculations based on scalar integers. (21-Aug-99) -- ----------- comp.lang.python.announce (moderated) ---------- Article Submission Address: python-announce@python.org Python Language Home Page: http://www.python.org/ Python Quick Help Index: http://www.python.org/Help.html ------------------------------------------------------------
participants (1)
-
Jeff Bauer