+1

Times must always be datetime objects

El 31/05/2013, a las 21:54, Salim Fadhley <notifications@github.com> escribió:

> In jenkinsapi/build.py:
> 
> > @@ -261,7 +261,7 @@ def get_actions(self):
> >          return all_actions
> >  
> >      def get_timestamp(self):
> > -        return self._data['timestamp']
> > +        return (self._data['timestamp'] / 1000)
> rocktavious - as mentioned in the discussion, is this reallyh any better? The original format just returns the underlying data. This (presumably) returns the integer timestamp divided by the integer 1000 - is that even remotely useful information? I feel that timestamps ought to be datetime objects, and durations should be timedeltas. Would you care to convince me otherwise?
> 
> —
> Reply to this email directly or view it on GitHub.