Python library for representing and working with time on other bodies in the Solar System — similar in spirit to the standard `datetime` module.
Time on a given body is expressed using a human-readable clock where **one hour is as close to one Earth hour as possible**. The number of hours per sol (day) is derived from the body's sidereal rotation period rounded to the nearest integer.
## Installation
```bash
pip install planetarytime
```
## Supported bodies
### Planets
| Body | Hours per sol | Sols per year |
|---------|--------------|---------------|
| Mercury | 1408 | 2 |
| Venus | 5833 | 1 |
| Mars | 25 | 670 |
| Jupiter | 10 | 10476 |
| Saturn | 11 | 24491 |
| Uranus | 17 | 42718 |
| Neptune | 16 | 89667 |
### Moons
Accessible via `Body.<PLANET>[index]`, ordered by distance from the planet.
| Planet | Index | Moon | Hours per sol | Tidally locked |