Saving all output to "!!{outputDirectory}!!/udf_datediff.q.raw". Enter "record" with no arguments to stop it. >>> !run !!{qFileDirectory}!!/udf_datediff.q >>> DESCRIBE FUNCTION datediff; 'tab_name' 'datediff(date1, date2) - Returns the number of days between date1 and date2' 1 row selected >>> DESCRIBE FUNCTION EXTENDED datediff; 'tab_name' 'datediff(date1, date2) - Returns the number of days between date1 and date2' 'date1 and date2 are strings in the format 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd'. The time parts are ignored.If date1 is earlier than date2, the result is negative.' 'Example:' ' > SELECT datediff('2009-07-30', '2009-07-31') FROM src LIMIT 1;' ' 1' 5 rows selected >>> !record