k thanks
On Wed, Dec 22, 2010 at 11:06 PM, Luther Goh Lu Feng <elf...@yahoo.com>wrote: > Instead of using 3 fields, you could store everything in 1 field using > the lowest denomination of time that you will use, eg seconds. Then > use a function to convert the value of `seconds` to days, minutes, > hours. > > On Dec 22, 3:20 pm, ron_m <ron.mco...@gmail.com> wrote: > > 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. > -- Sahil Arora B.Tech 2nd year Computer Science and Engineering IIT Delhi Contact No: +91 9871491046