[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pysolar-discuss] Leap seconds


Hi all,
When calculating for dates beyond 2015, the user warning "I don't know about leap seconds after 2015" is emitted.

The leap second list is embedded in time.py . Surely a better architecture would be to have this list split out into an external file, something simple and human readable like csv or even just space delimited. That way updates could easily be published on the pysolar web site as a simple file to download and put into your pysolar directory. We could even have a pysolar script that you run which fetches this file from the web site.

If this suggestion is workable, I'm ok doing the work to make it happen (refactoring the code to split out the list, selecting an appropriate format, writing a script to fetch leap second data, etc).

Thoughts?
- Naz.

--
/Nazeer Gassiep/

E-mail:naz@xxxxxxxxxxx <mailto:naz@xxxxxxxxxxx>
Phone:     +61 400 460 662


السلام عليكم

Follow-Ups:
Re: [pysolar-discuss] Leap secondsBrandon Stafford <brandon@xxxxxxxxxxxxxxx>