Changes between Version 3 and Version 4 of DatesBestPractice


Ignore:
Timestamp:
16/08/06 11:19:09 (13 years ago)
Author:
spascoe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatesBestPractice

    v3 v4  
    55Cdtime is fairly small module providing 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.  However, this would require further wrapping/unwrapping when using CDAT's utilities.  An alternative is to clearly differentiate when the two packages should be used and to share code that manages conversion between the two libraries where appropriate. 
    66 
    7 One area where conversion between the two may be needed is in metadata relating to climate data (e.g. dates in MOLES) where the date encoding must follow internet standards.  It would seem sensible to convert to a datetime type before encoding.  Conversely dates in CF-NetCDF metadata should be in the format "<units> since <basetime>" which is conveniently handled by `cdtime`. 
     7One area where conversion between the two may be needed is in metadata relating to climate data (e.g. timestamps in CSML) where the date encoding must follow internet standards.  It would seem sensible to convert to a datetime type before encoding.  Conversely dates in CF-NetCDF metadata should be in the format "<units> since <basetime>" which is conveniently handled by `cdtime`. 
    88 
    99== General Guidelines ==