Well, one of the issues is going to be that you are using 'date' for your
fields instead of 'datetime'. When using 'datetime', it becomes easy to do
something like this:
delta = row.employee_logout_date - row.employee_login_date
minutes = delta.minutes + (delta.hours * 60)
On Monday, February 2
showing AttributeError: 'datetime.timedelta' object has no attribute 'minutes'
On Tuesday, February 28, 2012 1:47:40 AM UTC+5:30, Ross Peoples wrote:
>
> Well, one of the issues is going to be that you are using 'date' for your
> fields instead of 'datetime'. When using 'datetime', it becom
Delta has only days and seconds.
On Feb 27, 9:55 pm, Sanjeet Kumar wrote:
> showing AttributeError: 'datetime.timedelta' object has no attribute
> 'minutes'
>
>
>
>
>
>
>
> On Tuesday, February 28, 2012 1:47:40 AM UTC+5:30, Ross Peoples wrote:
>
> > Well, one of the issues is going to be that y
Thanks Massimo
On Tue, Feb 28, 2012 at 10:33 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Delta has only days and seconds.
>
> On Feb 27, 9:55 pm, Sanjeet Kumar wrote:
> > showing AttributeError: 'datetime.timedelta' object has no attribute
> 'minutes'
> >
> >
> >
> >
> >
> >
>
4 matches
Mail list logo