Re: [web2py] adding minutes in field which has datatype as 'datetime'

2017-05-29 Thread 'Karl Thomas Schmidt' via web2py-users
my_datetime = datetime.datetime.now() my_delta = datetime.timedelta(minutes=3) my_newdatetime = my_datetime + my_delta -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report

[web2py] adding minutes in field which has datatype as 'datetime'

2017-05-29 Thread akshay05kumar
Hello all, I have a table in database as: db.define_table('job', Field('schedule_time','datetime',default = request.now)) I want to compare the (value in schedule_time field + 3 minutes) with current time(getting that by using request.now). So my question is does web2py handles this adding