IllegalSecondError

exception astropy.coordinates.IllegalSecondError(second)[source]

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

Parameters:
secondpython:int, python:float

Examples

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