[vtk-developers] TimePointUtility Testing

Bill Lorensen bill.lorensen at gmail.com
Thu Sep 20 08:21:45 EDT 2012


Jeff,

I think I see the problem. My test does the following:

1) compute a time point for month, day, year
2) convert that time point to ISO8601
3) convert the ISO string back to a time point

According to http://en.wikipedia.org/wiki/ISO_8601 ISO8601 usually does not
support +/- in front of the year.

So it's not really a bug, but a convention.

For now, I'll make sure my test doesn't generate negative years.

Although working with negative years and trying to convert them is probably
not a typical use case.

Perhaps the documentation for the ISO conversions should be updated. Not a
high priority.

Bill

On Wed, Sep 19, 2012 at 8:29 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> Jeff,
>
> In working on a test for vtkTimePointUtility, it seems that the code does
> not work for years < 0?
>
> Is this expected?
>
> Bill
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120920/4628915e/attachment.html>


More information about the vtk-developers mailing list