Era¶
- class kanon.calendars.calendars.Era(name: str, epoch: float)[source] [edit on github]¶
Bases:
object
Dataclass defining an era.
>>> Era("A.D.", 1721424) Era(name='A.D.', epoch=1721424)
- Parameters
name – Name of the era
days_ly – Start of the era in Julian Day Number
Methods Summary
days_from_epoch
(jdn)Methods Documentation
- days_from_epoch(jdn: float) → float[source] [edit on github]¶