And if you want to automatically handle conversion to and from a Python timedelta object, you can use filter_in/filter_out <http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#filter_in-and-filter_out> or create a custom field type <http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Custom-Field-types--experimental-> .
Anthony On Monday, February 15, 2016 at 9:57:24 AM UTC-5, Niphlod wrote: > > integer storing seconds > > On Monday, February 15, 2016 at 1:25:47 PM UTC+1, goome wrote: >> >> hi >> If i am correct there is no deltatime field in DAL, i mean a field where >> to store difference from 2 datetime object. >> So which is the suggested solution in this case? just a string field? >> Thanks >> > -- 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 Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

