Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Subtract Hours From A Given Date
a date is nothing more than a floating point number. sysdate+1 is the same
as adding one day.
so to add an hour sysdate+1/24 can be done;
Harvey <pfeffer.david.da_at_bhp.com.au> wrote in message
news:7ra4a8$a3d12_at_atbhp.corpmel.bhp.com.au...
> Does anyone know how to subtract hours from a given datetime in Oracle?
>
> Is there a function similar to add_months?...ie ADD_MONTHS(sysdate,-6)
will
> return a date 6 months before the current date.
>
>
Received on Fri Sep 10 1999 - 00:23:42 CDT
![]() |
![]() |