[CF-metadata] udunits time units question
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.
Received on Fri Apr 01 2011 - 07:17:17 BST
This archive was generated by hypermail 2.3.0
: Tue Sep 13 2022 - 23:02:41 BST