INTERVAL function
Returns the time interval between two DATE, DATETIME, or DATETIME-TZ values as an INT64 value.
Syntax
datetime1
datetime2
interval-unit
Notes
- This function returns a signed integer value (positive or negative). For example, if
datetime1
is less thandatetime2
, the INTERVAL function returns a negative value.- If
datetime1
ordatetime2
is a DATE or DATETIME, the time value defaults to midnight and the time zone value defaults to the session's time zone, respectively.- You are responsible for managing value overflow, if any.
See also– Date subtraction operator, – Datetime subtraction operator, ADD-INTERVAL function, DATE function, DATETIME function, DATETIME-TZ function
OpenEdge Release 10.2B
|