IllegalHourError

exception astropy.coordinates.errors.IllegalHourError(hour) [edit on github][source]

Raised when an hour value is not in the range [0,24).

Usage:

if not 0 <= hr < 24:
raise IllegalHourError(hour)
Parameters :hour : int, float

Page Contents