Subject | Re[2]: [IBO] simple question |
---|---|
Author | lseptimiu@yahoo.com |
Post date | 2005-08-19T09:53:18Z |
Hello Helen,
Friday, August 19, 2005, 12:50:09 PM, you wrote:
but, thank you very much
--
Best regards,
lseptimiu
mailto:lseptimiu@...
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Friday, August 19, 2005, 12:50:09 PM, you wrote:
> At 02:12 AM 19/08/2005 -0700, you wrote:need
>>Hello IBObjects,
>>
>> Maybe this is a silly question, but I really
>>help. I need todates
>> find the number of days that passed between two
>>dates inside of a
>> procedure. I know one way, by decomposing the
>>in zz-mm-yyyydoes
>> but, I try to find a simple way to do that...
>>anyone can helpThe result is the
>> me find the right solution?! is this the best
>>solution?!
>> Looking forward....
>
> Just subtract the later date from the earlier one.
> interval in days.date)
>
> create procedure GetInterval (date1 date, date2
> returns time_passed integer)types, make the return
> as
> begin
> time_passed = -1;
> if (date2 < date1) then Exit;
> time_passed = date2 - date1;
> end
>
> If you are comparing timestamp rather than date
> variable double precision.___________________________________________________________________________
>
> Off-topic for IBO, by the way.
>
> Helen
>
>
>
>
>
> IB Objects - direct, complete, custom connectivityto Firebird or InterBase
> without the need for BDE, ODBC or anyother layer.
>___________________________________________________________________________
>
> http://www.ibobjects.com - your IBO communityresource for Tech Info papers,
> keyword-searchable FAQ, community codecontributions and more !
>development software
>
> SPONSORED LINKS
> Database design software Database
> Membership database software Resumedatabase software
> Database software Inventory database softwareto:
>
>
> YAHOO! GROUPS LINKS
>
>
> Visit your group "IBObjects" on the web.
> To unsubscribe from this group, send an email
> IBObjects-unsubscribe@yahoogroups.comYahoo! Terms of Service.
> Your use of Yahoo! Groups is subject to the
>I know,
>
>
>
>
>
but, thank you very much
--
Best regards,
lseptimiu
mailto:lseptimiu@...
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com