code: public static long measureDurationSeconds(String eventDate) { 
      	long result = 0l;
      	if (!isEmpty(eventDate)) { 
      		Interval eventDateInterval = DateUtils.extractInterval(eventDate);
      		logger.debug(eventDateInterval.toDuration().getStandardDays());
      		logger.debug(eventDateInterval);
      		long mills = eventDateInterval.toDurationMillis();
      		result = (long)Math.ceil(mills/1000l);
      	}
      	return result;
      }
docs: Measure the duration of an event date in seconds, when a time is
  specified, ceiling to the nearest second, when a time is not
  specified, from the date midnight at the beginning of a date
  range to the last second of the day at the end of the range.  This
  may return one second less than your expectation for the number
  of seconds in the interval (e.g. 86399 seconds for the duration of
  a day specified as 1980-01-01.
  
  Provides: EVENT_DATE_DURATION_SECONDS
  
  Suggested by Alex Thompson in a TDWG data quality task group call.
  
  @param eventDate to test.
  @return the duration of eventDate in seconds.