Subject | Re: Is it possible to insert an INTEGER into a TIME field? |
---|---|
Author | jeff_j_dunlap |
Post date | 2007-09-15T15:38:30Z |
--- In firebird-support@yahoogroups.com, "Anderson Farias"
<peixedragao@...> wrote:
Regards,
Jeff
<peixedragao@...> wrote:
>day).
> Hi,
>
> Use TIME fields only when you what to store a 'point in time' (on a
> OTOH, if you whant to store an "amount of time" use INTEGER (orsome
> numeric) to store it in some unit defined by you (eg: minutes).of
>
> Later you can cast your TIME fields to timestamp and add your 'qty
> minutes' to it, ex:from
>
> select cast(mytimefield as timestamp)+(myminutesfield/1440.000000)
> tablecontaining
>
> (this is only an exemple, assuming myminutesfield is an integer
> the amount of time in minutes)result
>
> the amount of zeroes after 1440 is the precision you what for the
>Thanks for the information.
>
> Regards,
> Anderson
Regards,
Jeff