astropy:docs

Note

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

IllegalHourError

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

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

Parameters:hour : int, float

Examples

if not 0 <= hr < 24:
   raise IllegalHourError(hour)

Page Contents