timediff is just 3 integers representing days, seconds, microseconds so you could decompose it and store it as 3 int fields in the DB and then use the 3 int values in a constructor to get it back. Alternative would be to convert it to a float or double if you can accept rounding errors.
- [web2py] use of 'timedelta' as a field Sahil Arora
- Re: [web2py] use of 'timedelta' as a field Sahil Arora
- Re: [web2py] use of 'timedelta' as a field ron_m
- [web2py] Re: use of 'timedelta' as a field Luther Goh Lu Feng
- Re: [web2py] Re: use of 'timedelta' as... Sahil Arora