On 4/1/2011 5:09 AM, Jon Blower wrote:
I guess such a library also needs the ability to add and subtract fixed durations to and from reference date/times.
where the duration is in a fixed number of seconds, i assume? so we have: CalendarDate d1, d2; long secs = d1.diff(d2); d1 = d2.add( secs); d1 = d2.subtract( secs);
Also conversion to and from string representations (e.g. ISO8601).
d1 = CalendarDate.parse(isoString); d1.toString() puts out iso date. _______________________________________________ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata