Skip to content

Sev7nOfNine/stardate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stardate ⚡

Convertisseur date ↔ stardate Star Trek (TNG).

python stardate.py 2026-07-06
python stardate.py --from 26511.0

Usage

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

Exemples

$ 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-08

Formule

La 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.

Tests

python tests.py   # 10 tests, tous verts ✅

Licence

MIT, fait avec ❤️ par Mel & Ada.

Engagez le convertisseur ! 🖖

About

Convertisseur date <-> stardate Star Trek (TNG) en Python. Double-clic, CLI ou module.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages