astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.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 `python:int`, `python:float`

  Examples

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