DIFF_SECOND( ) Calculates the number of seconds between two date values. Syntax DIFF_SECOND(date1, date2) Arguments date1 The first date or date expression to use in the calculation. If the date does not have a time value, the function assumes the time is midnight, 12:00 AM. date2 The second date or date expression to use in the calculation. If the date does not have a time value, the function assumes the time is midnight, 12:00 AM. Returns The number of seconds between date1 and date2. Example The following example calculates the number of seconds between each value in the startTime data field and each value in the finishTime data field: DIFF_SECOND([startTime],[finishTime]) The following example calculates the number of seconds from the current date to Christmas. NOW( ) is a function that returns the current date and time. If you supply a literal date as an argument, you must include the time value, as shown in the following example: DIFF_SECOND(NOW(), "12/24/08 12:00 AM")
© Copyright OpenText Corp. All rights reserved. Privacy Policy | Cookie Policy