relativedelta fails if supplied with numpy.int64 as argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
New
|
Undecided
|
Unassigned |
Bug Description
Would it be possible for relativedelta to be tweaked to allow it to accept numpy.int64 values as arguments?
At present this is what I get when using numpy 1.6 and dateutil 1.5:
datetime(2012,4,3) - dateutil.
-------
TypeError Traceback (most recent call last)
<ipython-
1 seconds = pl.array([3,4,5])
----> 2 datetime(2012,4,3) - dateutil.
/usr/local/
287
288 def __rsub__(self, other):
--> 289 return self.__
290
291 def __add__(self, other):
/usr/local/
274 minutes=
275 seconds=
--> 276 microseconds=
277 if self.weekday:
278 weekday, nth = self.weekday.
TypeError: unsupported type for timedelta seconds component: numpy.int64
Regards,
Will Furnass