HistoricalDate documentation#
- class historical_timelines.HistoricalDate(year: int, month: Month = None, day: int = None, era: Era = Era.CE)#
- static assign_month(month: int) Month#
Convert an int into a Month enum
- Args:
month (int): The integer representation of the month
- Returns:
Month: The Month enum representation of the month
- get_adjudged_year() int#
Get a year adjusted for sorting. This makes BCE years negative
- Returns:
int: The adjusted year
- static get_random_date() HistoricalDate#
Generate a random date
- Returns:
HistoricalDate: A random date