Subject | Re: [firebird-support] Adding minutes to a TimeStamp |
---|---|
Author | Helen Borrie |
Post date | 2010-09-27T23:45:48Z |
At 11:39 AM 28/09/2010, Robert martin wrote:
For 5 mins this expression should get you near enough:
aTimestamp + (5.00000000/1440)
./heLen
> HiAdd days and/or part-days...
>
>In a Stored Procedure I want to see if an event is within 5 minutes.
>How to I add minutes to a TimeStamp?
>I know I can add / subtract 1 toDon't be tempted to use (5/1440) - that expression results in zero!
>add / subtract a day I assume I can add a fraction to add minutes?
For 5 mins this expression should get you near enough:
aTimestamp + (5.00000000/1440)
./heLen