obspy.clients.filesystem.tsindex.Indexer.download_leap_seconds_file

Indexer.download_leap_seconds_file(file_path=None, url=None)[source]

Attempt to download leap-seconds.list from Internet Engineering Task Force (IETF) and save to a file.

Parameters:
  • file_path (str) – Optional path to where the leap seconds file should be downloaded. By default the file is downloaded to the same directory as the Indexer instances sqlite3 timeseries index database path.

  • url (str) – Optional URL to download from, default is from the IETF: https://www.ietf.org/timezones/data/leap-seconds.list

Return type:

str

Returns:

Path to downloaded leap seconds file.