addWeek

<< addSecond | FB 2.5 Language Reference | addYear >>

addWeek

Library: fbudf

Added in: 1.0 (Win), 1.5 (Linux)

Better alternative: Internal function DATEADD

Description

Returns the first argument with number weeks added. Use negative numbers to subtract.

Result type: TIMESTAMP

Syntax

 addweek (atimestamp, number)

Declaration

 DECLARE EXTERNAL FUNCTION addWeek
   TIMESTAMP, INT
   RETURNS TIMESTAMP
   ENTRY_POINT 'addWeek' MODULE_NAME 'fbudf'

back to top of page
<< addSecond | FB 2.5 Language Reference | addYear >>