Convertisseur date ↔ stardate Star Trek (TNG).
python stardate.py 2026-07-06
python stardate.py --from 26511.0
python stardate.py → date du jour
python stardate.py YYYY-MM-DD → stardate
python stardate.py --from <N> → date grégorienne
python stardate.py --help → aide
$ python stardate.py
→ 2026-07-07 → Stardate 26513.9
$ python stardate.py 2026-07-07
→ Stardate 26513.9
$ python stardate.py --from 0.0
→ 2000-01-01
$ python stardate.py --from 79999.5
→ 2219-01-08La stardate TNG classique :
- 1000 stardates = 1 année terrestre (365,2425 jours)
- Stardate 0.0 = 1er janvier 2000 (époque de référence)
- La fraction décimale représente la progression dans l'année
L'arrondi à 0,1 stardate près donne une résolution d'environ 8,8 heures, soit assez pour distinguer le jour.
python tests.py # 10 tests, tous verts ✅MIT, fait avec ❤️ par Mel & Ada.
Engagez le convertisseur ! 🖖