function getTimeInSeconds_(date) {
  return Math.floor(date.getTime() / 1000);
}
Gets the time in seconds, rounded down to the nearest second.
@param {Date} date The Date object to convert.
@return {number} The number of seconds since the epoch.
@private