21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Declaration:<br />

External functions (UDFs)<br />

DECLARE EXTERNAL FUNCTION addMinute<br />

TIMESTAMP, INT<br />

RETURNS TIMESTAMP<br />

ENTRY_POINT 'addMinute' MODULE_NAME 'fbudf'<br />

Library: fbudf<br />

Added in: 1.0 (Win), 1.5 (Linux)<br />

Better alternative: Internal function DATEADD<br />

addMonth<br />

Description: Returns the first argument with number months added. Use negative numbers to subtract.<br />

Result type: TIMESTAMP<br />

Syntax:<br />

addmonth (atimestamp, number)<br />

Declaration:<br />

DECLARE EXTERNAL FUNCTION addMonth<br />

TIMESTAMP, INT<br />

RETURNS TIMESTAMP<br />

ENTRY_POINT 'addMonth' MODULE_NAME 'fbudf'<br />

Library: fbudf<br />

Added in: 1.0 (Win), 1.5 (Linux)<br />

Better alternative: Internal function DATEADD<br />

addSecond<br />

Description: Returns the first argument with number seconds added. Use negative numbers to subtract.<br />

Result type: TIMESTAMP<br />

Syntax:<br />

addsecond (atimestamp, number)<br />

Declaration:<br />

DECLARE EXTERNAL FUNCTION addSecond<br />

TIMESTAMP, INT<br />

167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!