docs: def totalSeconds(td):
      """totalSeconds(td) -> float
  
      Return the total number of seconds contained in the given Python
      datetime.timedelta object.  Python 2.6 and earlier do not have
      timedelta.total_seconds().
  
      Examples:
  
      >>> totalSeconds( toLocalTime(86400.123) - toLocalTime(0.003) )
      86400.12
      """
      if hasattr(td, "total_seconds"):
          ts = td.total_seconds()
      else:
          ts = (td.microseconds + (td.seconds + td.days * 24 * 3600.0) * 1e6) / 1e6
  
      return ts