Add PlanetaryTime.time and .date convenience properties

This commit is contained in:
2026-04-16 19:26:23 +02:00
parent 872de743ad
commit e35501bd28
4 changed files with 28 additions and 11 deletions

View File

@@ -76,14 +76,14 @@ Moon and dwarf planets (Pluto, Ceres, Eris) may be added later.
- Project scaffolded (Poetry, src layout, tests directory)
- No implementation yet
## TODO
## Pending work
- Define `Body` enum with rotation periods
- Define `Epoch` enum and epoch registry
- Implement core `PlanetaryTime` class
- Implement conversion from Earth `datetime`
- Implement `__str__` / `__repr__`
- Write tests for conversion accuracy
- Write tests for epoch switching
- Populate README with usage examples
- Implement `scripts/refresh_data.py` — fetches rotation periods, orbital periods and discovery dates from Wikidata SPARQL endpoint and regenerates hardcoded data in `body.py`, `moon.py` and `epoch.py`; script is not part of the distributed package
- TODO: Define `Body` enum with rotation periods
- TODO: Define `Epoch` enum and epoch registry
- TODO: Implement core `PlanetaryTime` class
- TODO: Implement conversion from Earth `datetime`
- TODO: Implement `__str__` / `__repr__`
- TODO: Write tests for conversion accuracy
- TODO: Write tests for epoch switching
- TODO: Populate README with usage examples
- TODO: Implement `scripts/refresh_data.py` — fetches rotation periods, orbital periods and discovery dates from Wikidata SPARQL endpoint and regenerates hardcoded data in `body.py`, `moon.py` and `epoch.py`; script is not part of the distributed package