astropy:docs

Note

This is an old version of the documentation. See http://docs.astropy.org/en/stable for the latest version.

IllegalSecondError

exception astropy.coordinates.IllegalSecondError(second)[source] [edit on github]

Raised when an second value (time) is not in the range [0,60].

Parameters:second : int, float

Examples

if not 0 <= sec < 60:
    raise IllegalSecondError(second)

Page Contents