[web2py] Re: Time Substraction

2012-02-27 Thread Ross Peoples
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

[web2py] Re: Time Substraction

2012-02-27 Thread Sanjeet Kumar
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

[web2py] Re: Time Substraction

2012-02-27 Thread Massimo Di Pierro
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

Re: [web2py] Re: Time Substraction

2012-02-27 Thread Sanjeet Kumar
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' > > > > > > > > > > > > >