sec

Declaration

integer function sec(date D)

Description

sec returns the seconds from date variable D as an integer. Sec returns values from 0 to 59.

Example Stored Procedure

CREATE PROCEDURE test_sec (D date)

RETURNS (result INTEGER) AS

BEGIN

result = sec(D);

END!!

WISQL - calling the example stored procedure

execute procedure test_sec("12/12/96 1:2:0")

RESULT

===========

0

execute procedure test_sec("12/12/96 1:2:01")

RESULT

===========

1

execute procedure test_sec("12/12/96 1:2:59")

RESULT

===========

59