astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v1.1.1 »
- Astronomical Coordinate Systems (`astropy.coordinates`) »
- IllegalHourError

# IllegalHourError

exception `astropy.coordinates.``IllegalHourError`(hour)

  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)