wiki:DatesBestPractice

Version 1 (modified by spascoe, 13 years ago) (diff)

--

=Dates Best Practice=

The consensus at the PythonCoding meeting was that there was no alternative to cdtime for climatological applications because of it's support for non-gregorian calendars. Since all bundles are going to require cdat-lite this shouldn't be a problem. The standard python module datetime is also invaluable because of it's support for standard internet timestamps.

Cdtime is no a large module and provides a simple interface to it's two time types reltime and comptime. It would probably be possible to wrap cdtime's features as a datetime subclass which includes calendaring features. An alternative is to clearly differentiate when the two packages should be used.

...UNDER CONSTRUCTION...