types-convertdate 2.4.0.20250827__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- convertdate-stubs/METADATA.toml +2 -0
- convertdate-stubs/__init__.pyi +48 -0
- convertdate-stubs/armenian.pyi +24 -0
- convertdate-stubs/bahai.pyi +37 -0
- convertdate-stubs/coptic.pyi +14 -0
- convertdate-stubs/data/__init__.pyi +0 -0
- convertdate-stubs/data/french_republican_days.pyi +3 -0
- convertdate-stubs/data/positivist.pyi +6 -0
- convertdate-stubs/daycount.pyi +13 -0
- convertdate-stubs/dublin.pyi +13 -0
- convertdate-stubs/french_republican.pyi +27 -0
- convertdate-stubs/gregorian.pyi +20 -0
- convertdate-stubs/hebrew.pyi +34 -0
- convertdate-stubs/holidays.pyi +161 -0
- convertdate-stubs/indian_civil.pyi +15 -0
- convertdate-stubs/islamic.pyi +17 -0
- convertdate-stubs/iso.pyi +17 -0
- convertdate-stubs/julian.pyi +20 -0
- convertdate-stubs/julianday.pyi +8 -0
- convertdate-stubs/mayan.pyi +40 -0
- convertdate-stubs/ordinal.pyi +4 -0
- convertdate-stubs/persian.pyi +19 -0
- convertdate-stubs/positivist.pyi +15 -0
- convertdate-stubs/py.typed +0 -0
- convertdate-stubs/utils.pyi +43 -0
- types_convertdate-2.4.0.20250827.dist-info/METADATA +38 -0
- types_convertdate-2.4.0.20250827.dist-info/RECORD +30 -0
- types_convertdate-2.4.0.20250827.dist-info/WHEEL +5 -0
- types_convertdate-2.4.0.20250827.dist-info/licenses/LICENSE +237 -0
- types_convertdate-2.4.0.20250827.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from typing import Final
|
|
2
|
+
|
|
3
|
+
from . import (
|
|
4
|
+
armenian as armenian,
|
|
5
|
+
bahai as bahai,
|
|
6
|
+
coptic as coptic,
|
|
7
|
+
daycount as daycount,
|
|
8
|
+
dublin as dublin,
|
|
9
|
+
french_republican as french_republican,
|
|
10
|
+
gregorian as gregorian,
|
|
11
|
+
hebrew as hebrew,
|
|
12
|
+
holidays as holidays,
|
|
13
|
+
indian_civil as indian_civil,
|
|
14
|
+
islamic as islamic,
|
|
15
|
+
iso as iso,
|
|
16
|
+
julian as julian,
|
|
17
|
+
julianday as julianday,
|
|
18
|
+
mayan as mayan,
|
|
19
|
+
ordinal as ordinal,
|
|
20
|
+
persian as persian,
|
|
21
|
+
positivist as positivist,
|
|
22
|
+
utils as utils,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
__version__: Final[str]
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"holidays",
|
|
29
|
+
"armenian",
|
|
30
|
+
"bahai",
|
|
31
|
+
"coptic",
|
|
32
|
+
"dublin",
|
|
33
|
+
"daycount",
|
|
34
|
+
"french_republican",
|
|
35
|
+
"gregorian",
|
|
36
|
+
"hebrew",
|
|
37
|
+
"indian_civil",
|
|
38
|
+
"islamic",
|
|
39
|
+
"iso",
|
|
40
|
+
"julian",
|
|
41
|
+
"julianday",
|
|
42
|
+
"mayan",
|
|
43
|
+
"persian",
|
|
44
|
+
"positivist",
|
|
45
|
+
"mayan",
|
|
46
|
+
"ordinal",
|
|
47
|
+
"utils",
|
|
48
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 1922501.5
|
|
4
|
+
EPOCH_SARKAWAG: Final = 2117210.5
|
|
5
|
+
MONTHS: Final[list[str]]
|
|
6
|
+
MONTHS_ARM: Final[list[str]]
|
|
7
|
+
|
|
8
|
+
def leap(year: int) -> bool: ...
|
|
9
|
+
def to_jd(year: int, month: int, day: int, method: Literal["sarkawag", "moveable"] | None = None) -> float: ...
|
|
10
|
+
def from_jd(jd: float, method: Literal["sarkawag", "moveable"] | None = None) -> tuple[int, int, int]: ...
|
|
11
|
+
def to_julian(year: int, month: int, day: int, method: Literal["sarkawag", "moveable"] | None = None) -> tuple[int, int, int]: ...
|
|
12
|
+
def from_julian(
|
|
13
|
+
year: int, month: int, day: int, method: Literal["sarkawag", "moveable"] | None = None
|
|
14
|
+
) -> tuple[int, int, int]: ...
|
|
15
|
+
def to_gregorian(
|
|
16
|
+
year: int, month: int, day: int, method: Literal["sarkawag", "moveable"] | None = None
|
|
17
|
+
) -> tuple[int, int, int]: ...
|
|
18
|
+
def from_gregorian(
|
|
19
|
+
year: int, month: int, day: int, method: Literal["sarkawag", "moveable"] | None = None
|
|
20
|
+
) -> tuple[int, int, int]: ...
|
|
21
|
+
def month_length(year: int, month: int, method: Literal["sarkawag", "moveable"] | None = None) -> Literal[5, 6, 30]: ...
|
|
22
|
+
def monthcalendar(year: int, month: int, method: Literal["sarkawag", "moveable"] | None = None) -> list[list[int | None]]: ...
|
|
23
|
+
def format(year: int, month: int, day: int, lang: str | None = None) -> str: ...
|
|
24
|
+
def tostring(year: int, month: int, day: int, lang: str | None = None) -> str: ...
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from typing import Final
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 2394646.5
|
|
4
|
+
EPOCH_GREGORIAN_YEAR: Final = 1844
|
|
5
|
+
TEHRAN: Final = 51.4215, 35.6944
|
|
6
|
+
WEEKDAYS: Final = ("Jamál", "Kamál", "Fidál", "Idál", "Istijlál", "Istiqlál", "Jalál")
|
|
7
|
+
MONTHS: Final[tuple[str, ...]]
|
|
8
|
+
ENGLISH_MONTHS: Final[tuple[str, ...]]
|
|
9
|
+
BAHA: Final = 1
|
|
10
|
+
JALAL: Final = 2
|
|
11
|
+
JAMAL: Final = 3
|
|
12
|
+
AZAMAT: Final = 4
|
|
13
|
+
NUR: Final = 5
|
|
14
|
+
RAHMAT: Final = 6
|
|
15
|
+
KALIMAT: Final = 7
|
|
16
|
+
KAMAL: Final = 8
|
|
17
|
+
ASMA: Final = 9
|
|
18
|
+
IZZAT: Final = 10
|
|
19
|
+
MASHIYYAT: Final = 11
|
|
20
|
+
ILM: Final = 12
|
|
21
|
+
QUDRAT: Final = 13
|
|
22
|
+
QAWL: Final = 14
|
|
23
|
+
MASAIL: Final = 15
|
|
24
|
+
SHARAF: Final = 16
|
|
25
|
+
SULTAN: Final = 17
|
|
26
|
+
MULK: Final = 18
|
|
27
|
+
AYYAMIHA: Final = 19
|
|
28
|
+
ALA: Final = 20
|
|
29
|
+
|
|
30
|
+
def gregorian_nawruz(year: int) -> tuple[int, int]: ...
|
|
31
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
32
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
33
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
34
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
35
|
+
def month_length(year: int, month: int) -> int: ...
|
|
36
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
37
|
+
def format(year: int, month: int, day: int, lang: str | None = None) -> str: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 1825029.5
|
|
4
|
+
MONTHS: Final[list[str]]
|
|
5
|
+
WEEKDAYS: Final = ["Tkyriaka", "Pesnau", "Pshoment", "Peftoou", "Ptiou", "Psoou", "Psabbaton"]
|
|
6
|
+
|
|
7
|
+
def is_leap(year: int) -> bool: ...
|
|
8
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
9
|
+
def from_jd(jdc: float) -> tuple[int, int, int]: ...
|
|
10
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
11
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
12
|
+
def month_length(year: int, month: int) -> Literal[5, 6, 30]: ...
|
|
13
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
14
|
+
def format(year: int, month: int, day: int) -> str: ...
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
class DayCount:
|
|
4
|
+
epoch: float
|
|
5
|
+
def __init__(self, epoch: float) -> None: ...
|
|
6
|
+
def to_gregorian(self, dc: int) -> tuple[int, int, int]: ...
|
|
7
|
+
def from_gregorian(self, year: int, month: int, day: int) -> float: ...
|
|
8
|
+
def to_jd(self, dc: int) -> float: ...
|
|
9
|
+
def from_jd(self, jdc: float) -> float: ...
|
|
10
|
+
def from_julian(self, year: int, month: int, day: int) -> float: ...
|
|
11
|
+
def to_julian(self, dc: int) -> tuple[int, int, int]: ...
|
|
12
|
+
def to_datetime(self, dc: int) -> datetime.datetime: ...
|
|
13
|
+
def from_datetime(self, date: datetime.datetime) -> float: ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Final
|
|
3
|
+
|
|
4
|
+
EPOCH: Final = 2415020
|
|
5
|
+
|
|
6
|
+
def to_gregorian(dc: int) -> tuple[int, int, int]: ...
|
|
7
|
+
def from_gregorian(year: int, month: int, day: int) -> float: ...
|
|
8
|
+
def to_jd(dc: int) -> float: ...
|
|
9
|
+
def from_jd(jdc: float) -> float: ...
|
|
10
|
+
def from_julian(year: int, month: int, day: int) -> float: ...
|
|
11
|
+
def to_julian(dc: int) -> tuple[int, int, int]: ...
|
|
12
|
+
def to_datetime(dc: int) -> datetime.datetime: ...
|
|
13
|
+
def from_datetime(date: datetime.datetime) -> float: ...
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 2375839.5
|
|
4
|
+
YEAR_EPOCH: Final = 1791.0
|
|
5
|
+
DAYS_IN_YEAR: Final = 365.0
|
|
6
|
+
MOIS: Final[list[str]]
|
|
7
|
+
MONTHS: Final[list[str]]
|
|
8
|
+
LEAP_CYCLE_DAYS: Final = 1461.0
|
|
9
|
+
LEAP_CYCLE_YEARS: Final = 4.0
|
|
10
|
+
|
|
11
|
+
def leap(year: int, method: Literal[4, 100, 128, "continuous", "madler", "romme", "equinox"] | None = None) -> bool: ...
|
|
12
|
+
def premier_da_la_annee(jd: float) -> float: ...
|
|
13
|
+
def to_jd(
|
|
14
|
+
year: int, month: int, day: int, method: Literal[4, 100, 128, "continuous", "madler", "romme", "equinox"] | None = None
|
|
15
|
+
) -> float: ...
|
|
16
|
+
def from_jd(
|
|
17
|
+
jd: float, method: Literal[4, 100, 128, "continuous", "madler", "romme", "equinox"] | None = None
|
|
18
|
+
) -> tuple[int, int, int]: ...
|
|
19
|
+
def decade(jour: float) -> int: ...
|
|
20
|
+
def day_name(month: int, day: int) -> str: ...
|
|
21
|
+
def from_gregorian(
|
|
22
|
+
year: int, month: int, day: int, method: Literal[4, 100, 128, "continuous", "madler", "romme", "equinox"] | None = None
|
|
23
|
+
) -> tuple[int, int, int]: ...
|
|
24
|
+
def to_gregorian(
|
|
25
|
+
an: int, mois: int, jour: int, method: Literal[4, 100, 128, "continuous", "madler", "romme", "equinox"] | None = None
|
|
26
|
+
) -> tuple[int, int, int]: ...
|
|
27
|
+
def format(an: int, mois: int, jour: int) -> str: ...
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 1721425.5
|
|
4
|
+
INTERCALATION_CYCLE_YEARS: Final = 400
|
|
5
|
+
INTERCALATION_CYCLE_DAYS: Final = 146097
|
|
6
|
+
LEAP_SUPPRESSION_YEARS: Final = 100
|
|
7
|
+
LEAP_SUPPRESSION_DAYS: Final = 36524
|
|
8
|
+
LEAP_CYCLE_YEARS: Final = 4
|
|
9
|
+
LEAP_CYCLE_DAYS: Final = 1461
|
|
10
|
+
YEAR_DAYS: Final = 365
|
|
11
|
+
HAVE_30_DAYS: Final = (4, 6, 9, 11)
|
|
12
|
+
HAVE_31_DAYS: Final = (1, 3, 5, 7, 8, 10, 12)
|
|
13
|
+
|
|
14
|
+
def legal_date(year: int, month: int, day: int) -> Literal[True]: ...
|
|
15
|
+
def to_jd2(year: int, month: int, day: int) -> float: ...
|
|
16
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
17
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
18
|
+
def month_length(year: int, month: int) -> int: ...
|
|
19
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
20
|
+
def format(year: int, month: int, day: int, format_string: str = "%-d %B %y") -> str: ...
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 347995.5
|
|
4
|
+
HEBREW_YEAR_OFFSET: Final = 3760
|
|
5
|
+
NISAN: Final = 1
|
|
6
|
+
IYYAR: Final = 2
|
|
7
|
+
SIVAN: Final = 3
|
|
8
|
+
TAMMUZ: Final = 4
|
|
9
|
+
AV: Final = 5
|
|
10
|
+
ELUL: Final = 6
|
|
11
|
+
TISHRI: Final = 7
|
|
12
|
+
HESHVAN: Final = 8
|
|
13
|
+
KISLEV: Final = 9
|
|
14
|
+
TEVETH: Final = 10
|
|
15
|
+
SHEVAT: Final = 11
|
|
16
|
+
ADAR: Final = 12
|
|
17
|
+
VEADAR: Final = 13
|
|
18
|
+
MONTHS: Final[list[str]]
|
|
19
|
+
MONTHS_HEB: Final[list[str]]
|
|
20
|
+
|
|
21
|
+
def leap(year: int) -> bool: ...
|
|
22
|
+
def year_months(year: int) -> Literal[12, 13]: ...
|
|
23
|
+
def delay_1(year: int) -> int: ...
|
|
24
|
+
def delay_2(year: int) -> Literal[0, 1, 2]: ...
|
|
25
|
+
def year_days(year: int) -> float: ...
|
|
26
|
+
def month_days(year: int, month: int) -> Literal[29, 30]: ...
|
|
27
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
28
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
29
|
+
def to_civil(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
30
|
+
def to_jd_gregorianyear(gregorianyear: int, hebrew_month: int, hebrew_day: int) -> float: ...
|
|
31
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
32
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
33
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
34
|
+
def format(year: int, month: int, day: int, lang: str | None = None) -> str: ...
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
from typing_extensions import deprecated
|
|
3
|
+
|
|
4
|
+
MON: Final = 0
|
|
5
|
+
TUE: Final = 1
|
|
6
|
+
WED: Final = 2
|
|
7
|
+
THU: Final = 3
|
|
8
|
+
FRI: Final = 4
|
|
9
|
+
SAT: Final = 5
|
|
10
|
+
SUN: Final = 6
|
|
11
|
+
JAN: Final = 1
|
|
12
|
+
FEB: Final = 2
|
|
13
|
+
MAR: Final = 3
|
|
14
|
+
APR: Final = 4
|
|
15
|
+
MAY: Final = 5
|
|
16
|
+
JUN: Final = 6
|
|
17
|
+
JUL: Final = 7
|
|
18
|
+
AUG: Final = 8
|
|
19
|
+
SEP: Final = 9
|
|
20
|
+
OCT: Final = 10
|
|
21
|
+
NOV: Final = 11
|
|
22
|
+
DEC: Final = 12
|
|
23
|
+
|
|
24
|
+
def new_years(year: int, observed: bool | None = None) -> tuple[int, int, int]: ...
|
|
25
|
+
def martin_luther_king_day(year: int) -> tuple[int, int, int]: ...
|
|
26
|
+
def lincolns_birthday(year: int) -> tuple[int, int, int]: ...
|
|
27
|
+
def valentines_day(year: int) -> tuple[int, int, int]: ...
|
|
28
|
+
def washingtons_birthday(year: int, observed: bool | None = None) -> tuple[int, int, int]: ...
|
|
29
|
+
def presidents_day(year: int) -> tuple[int, int, int]: ...
|
|
30
|
+
def pulaski_day(year: int) -> tuple[int, int, int]: ...
|
|
31
|
+
def easter(year: int, church: Literal["western", "orthodox", "eastern"] | None = None) -> tuple[int, int, int]: ...
|
|
32
|
+
def may_day(year: int) -> tuple[int, int, int]: ...
|
|
33
|
+
def mothers_day(year: int) -> tuple[int, int, int]: ...
|
|
34
|
+
def memorial_day(year: int) -> tuple[int, int, int]: ...
|
|
35
|
+
def fathers_day(year: int) -> tuple[int, int, int]: ...
|
|
36
|
+
def juneteenth(year: int) -> tuple[int, int, int]: ...
|
|
37
|
+
def flag_day(year: int) -> tuple[int, int, int]: ...
|
|
38
|
+
def independence_day(year: int, observed: bool | None = None) -> tuple[int, int, int]: ...
|
|
39
|
+
def labor_day(year: int) -> tuple[int, int, int]: ...
|
|
40
|
+
def indigenous_peoples_day(year: int, country: str = "usa") -> tuple[int, int, int]: ...
|
|
41
|
+
@deprecated("The `columbus_day` function will be removed in a future release. Use `indigenous_peoples_day` instead.")
|
|
42
|
+
def columbus_day(year: int, country: str = "usa") -> tuple[int, int, int]: ...
|
|
43
|
+
def halloween(year: int) -> tuple[int, int, int]: ...
|
|
44
|
+
def election_day(year: int) -> tuple[int, int, int]: ...
|
|
45
|
+
def veterans_day(year: int, observed: bool | None = None) -> tuple[int, int, int]: ...
|
|
46
|
+
def rememberance_day(year: int) -> tuple[int, int, int]: ...
|
|
47
|
+
def armistice_day(year: int) -> tuple[int, int, int]: ...
|
|
48
|
+
def thanksgiving(year: int, country: Literal["usa", "canada"] = "usa") -> tuple[int, int, int]: ...
|
|
49
|
+
def christmas_eve(year: int) -> tuple[int, int, int]: ...
|
|
50
|
+
def christmas(year: int, observed: bool | None = None) -> tuple[int, int, int]: ...
|
|
51
|
+
def new_years_eve(year: int) -> tuple[int, int, int]: ...
|
|
52
|
+
def hanukkah(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
53
|
+
def purim(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
54
|
+
def rosh_hashanah(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
55
|
+
def yom_kippur(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
56
|
+
def passover(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
57
|
+
def shavuot(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
58
|
+
def sukkot(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
59
|
+
def shemini_azeret(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
60
|
+
def lag_baomer(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
61
|
+
def tu_beshvat(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
62
|
+
def tisha_bav(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
63
|
+
def dia_constitucion(year: int, observed: bool | None = True) -> tuple[int, int, int]: ...
|
|
64
|
+
def natalicio_benito_juarez(year: int, observed: bool | None = True) -> tuple[int, int, int]: ...
|
|
65
|
+
def dia_independencia(year: int) -> tuple[int, int, int]: ...
|
|
66
|
+
def dia_revolucion(year: int) -> tuple[int, int, int]: ...
|
|
67
|
+
def ramadan(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
68
|
+
def ashura(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
69
|
+
def eid_alfitr(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
70
|
+
def eid_aladha(year: int, eve: bool | None = None) -> tuple[int, int, int]: ...
|
|
71
|
+
|
|
72
|
+
class Holidays:
|
|
73
|
+
year: int
|
|
74
|
+
def __init__(self, year: int | None = None) -> None: ...
|
|
75
|
+
def set_year(self, year: int) -> None: ...
|
|
76
|
+
@property
|
|
77
|
+
def christmas(self) -> tuple[int, int, int]: ...
|
|
78
|
+
@property
|
|
79
|
+
def christmas_eve(self) -> tuple[int, int, int]: ...
|
|
80
|
+
@property
|
|
81
|
+
def thanksgiving(self) -> tuple[int, int, int]: ...
|
|
82
|
+
@property
|
|
83
|
+
def new_years(self) -> tuple[int, int, int]: ...
|
|
84
|
+
@property
|
|
85
|
+
def new_years_eve(self) -> tuple[int, int, int]: ...
|
|
86
|
+
@property
|
|
87
|
+
def independence_day(self) -> tuple[int, int, int]: ...
|
|
88
|
+
@property
|
|
89
|
+
def flag_day(self) -> tuple[int, int, int]: ...
|
|
90
|
+
@property
|
|
91
|
+
def election_day(self) -> tuple[int, int, int]: ...
|
|
92
|
+
@property
|
|
93
|
+
def presidents_day(self) -> tuple[int, int, int]: ...
|
|
94
|
+
@property
|
|
95
|
+
def washingtons_birthday(self) -> tuple[int, int, int]: ...
|
|
96
|
+
@property
|
|
97
|
+
def lincolns_birthday(self) -> tuple[int, int, int]: ...
|
|
98
|
+
@property
|
|
99
|
+
def memorial_day(self) -> tuple[int, int, int]: ...
|
|
100
|
+
@property
|
|
101
|
+
def juneteenth(self) -> tuple[int, int, int]: ...
|
|
102
|
+
@property
|
|
103
|
+
def labor_day(self) -> tuple[int, int, int]: ...
|
|
104
|
+
@property
|
|
105
|
+
def indigenous_peoples_day(self) -> tuple[int, int, int]: ...
|
|
106
|
+
@property
|
|
107
|
+
def columbus_day(self) -> tuple[int, int, int]: ...
|
|
108
|
+
@property
|
|
109
|
+
def veterans_day(self) -> tuple[int, int, int]: ...
|
|
110
|
+
@property
|
|
111
|
+
def valentines_day(self) -> tuple[int, int, int]: ...
|
|
112
|
+
@property
|
|
113
|
+
def halloween(self) -> tuple[int, int, int]: ...
|
|
114
|
+
@property
|
|
115
|
+
def mothers_day(self) -> tuple[int, int, int]: ...
|
|
116
|
+
@property
|
|
117
|
+
def fathers_day(self) -> tuple[int, int, int]: ...
|
|
118
|
+
@property
|
|
119
|
+
def pulaski_day(self) -> tuple[int, int, int]: ...
|
|
120
|
+
@property
|
|
121
|
+
def easter(self) -> tuple[int, int, int]: ...
|
|
122
|
+
@property
|
|
123
|
+
def martin_luther_king_day(self) -> tuple[int, int, int]: ...
|
|
124
|
+
@property
|
|
125
|
+
def hanukkah(self) -> tuple[int, int, int]: ...
|
|
126
|
+
@property
|
|
127
|
+
def purim(self) -> tuple[int, int, int]: ...
|
|
128
|
+
@property
|
|
129
|
+
def rosh_hashanah(self) -> tuple[int, int, int]: ...
|
|
130
|
+
@property
|
|
131
|
+
def yom_kippur(self) -> tuple[int, int, int]: ...
|
|
132
|
+
@property
|
|
133
|
+
def passover(self) -> tuple[int, int, int]: ...
|
|
134
|
+
@property
|
|
135
|
+
def shavuot(self) -> tuple[int, int, int]: ...
|
|
136
|
+
@property
|
|
137
|
+
def sukkot(self) -> tuple[int, int, int]: ...
|
|
138
|
+
@property
|
|
139
|
+
def tu_beshvat(self) -> tuple[int, int, int]: ...
|
|
140
|
+
@property
|
|
141
|
+
def shemini_azeret(self) -> tuple[int, int, int]: ...
|
|
142
|
+
@property
|
|
143
|
+
def lag_baomer(self) -> tuple[int, int, int]: ...
|
|
144
|
+
@property
|
|
145
|
+
def tisha_bav(self) -> tuple[int, int, int]: ...
|
|
146
|
+
@property
|
|
147
|
+
def dia_constitucion(self) -> tuple[int, int, int]: ...
|
|
148
|
+
@property
|
|
149
|
+
def natalicio_benito_juarez(self) -> tuple[int, int, int]: ...
|
|
150
|
+
@property
|
|
151
|
+
def dia_independencia(self) -> tuple[int, int, int]: ...
|
|
152
|
+
@property
|
|
153
|
+
def dia_revolucion(self) -> tuple[int, int, int]: ...
|
|
154
|
+
@property
|
|
155
|
+
def ramadan(self) -> tuple[int, int, int]: ...
|
|
156
|
+
@property
|
|
157
|
+
def ashura(self) -> tuple[int, int, int]: ...
|
|
158
|
+
@property
|
|
159
|
+
def eid_alfitr(self) -> tuple[int, int, int]: ...
|
|
160
|
+
@property
|
|
161
|
+
def eid_aladha(self) -> tuple[int, int, int]: ...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
WEEKDAYS: Final = ("Ravivāra", "Somavāra", "Maṅgalavāra", "Budhavāra", "Guruvāra", "Śukravāra", "Śanivāra")
|
|
4
|
+
MONTHS: Final[tuple[str, ...]]
|
|
5
|
+
HAVE_31_DAYS: Final = (2, 3, 4, 5, 6)
|
|
6
|
+
HAVE_30_DAYS: Final = (7, 8, 9, 10, 11, 12)
|
|
7
|
+
SAKA_EPOCH: Final = 78
|
|
8
|
+
|
|
9
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
10
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
11
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
12
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
13
|
+
def month_length(year: int, month: int) -> Literal[30, 31]: ...
|
|
14
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
15
|
+
def format(year: int, month: int, day: int) -> str: ...
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 1948439.5
|
|
4
|
+
WEEKDAYS: Final = ("al-'ahad", "al-'ithnayn", "ath-thalatha'", "al-'arb`a'", "al-khamis", "al-jum`a", "as-sabt")
|
|
5
|
+
MONTHS: Final[list[str]]
|
|
6
|
+
HAS_29_DAYS: Final = (2, 4, 6, 8, 10)
|
|
7
|
+
HAS_30_DAYS: Final = (1, 3, 5, 7, 9, 11)
|
|
8
|
+
|
|
9
|
+
def leap(year: int) -> bool: ...
|
|
10
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
11
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
12
|
+
def to_jd_gregorianyear(gregorianyear: int, islamic_month: int, islamic_day: int) -> float: ...
|
|
13
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
14
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
15
|
+
def month_length(year: int, month: int) -> Literal[29, 30]: ...
|
|
16
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
17
|
+
def format(year: int, month: int, day: int) -> str: ...
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Final, Literal
|
|
3
|
+
|
|
4
|
+
MON: Final = 0
|
|
5
|
+
TUE: Final = 1
|
|
6
|
+
WED: Final = 2
|
|
7
|
+
THU: Final = 3
|
|
8
|
+
FRI: Final = 4
|
|
9
|
+
SAT: Final = 5
|
|
10
|
+
SUN: Final = 6
|
|
11
|
+
|
|
12
|
+
def to_jd(year: int, week: int, day: int) -> float: ...
|
|
13
|
+
def from_jd(jd: float) -> datetime._IsoCalendarDate: ...
|
|
14
|
+
def weeks_per_year(year: int) -> Literal[52, 53]: ...
|
|
15
|
+
def from_gregorian(year: int, month: int, day: int) -> datetime._IsoCalendarDate: ...
|
|
16
|
+
def to_gregorian(year: int, week: int, day: int) -> tuple[int, int, int]: ...
|
|
17
|
+
def format(year: int, week: int, day: int) -> str: ...
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
J0000: Final = 1721424.5
|
|
4
|
+
J1970: Final = 2440587.5
|
|
5
|
+
JMJD: Final = 2400000.5
|
|
6
|
+
JULIAN_EPOCH: Final = 1721423.5
|
|
7
|
+
J2000: Final = 2451545.0
|
|
8
|
+
JULIANCENTURY: Final = 36525.0
|
|
9
|
+
HAVE_30_DAYS: Final = (4, 6, 9, 11)
|
|
10
|
+
HAVE_31_DAYS: Final = (1, 3, 5, 7, 8, 10, 12)
|
|
11
|
+
|
|
12
|
+
def leap(year: int) -> bool: ...
|
|
13
|
+
def month_length(year: int, month: int) -> Literal[28, 29, 30, 31]: ...
|
|
14
|
+
def legal_date(year: int, month: int, day: int) -> Literal[True]: ...
|
|
15
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
16
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
17
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
18
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
19
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
20
|
+
def format(year: int, month: int, day: int, format_string: str = "%-d %B %y") -> str: ...
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
def to_datetime(jdc: float) -> datetime.datetime: ...
|
|
4
|
+
def from_datetime(dt: datetime.datetime) -> float: ...
|
|
5
|
+
def to_gregorian(jdc: float) -> tuple[int, int, int]: ...
|
|
6
|
+
def from_gregorian(year: int, month: int, day: int) -> float: ...
|
|
7
|
+
def to_julian(jdc: float) -> tuple[int, int, int]: ...
|
|
8
|
+
def from_julian(year: int, month: int, day: int) -> float: ...
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from _typeshed import Unused
|
|
2
|
+
from collections.abc import Generator
|
|
3
|
+
from typing import Final, Literal, NoReturn, overload
|
|
4
|
+
|
|
5
|
+
EPOCH: Final = 584282.5
|
|
6
|
+
HAAB: Final[list[str]]
|
|
7
|
+
HAAB_TRANSLATIONS: Final[list[str]]
|
|
8
|
+
TZOLKIN: Final[list[str]]
|
|
9
|
+
TZOLKIN_TRANSLATIONS: Final[list[str]]
|
|
10
|
+
|
|
11
|
+
def to_jd(baktun: int, katun: int, tun: int, uinal: int, kin: int) -> float: ...
|
|
12
|
+
def from_jd(jd: float) -> tuple[int, int, int, int, int]: ...
|
|
13
|
+
def to_gregorian(baktun: int, katun: int, tun: int, uinal: int, kin: int) -> tuple[int, int, int]: ...
|
|
14
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int, int, int]: ...
|
|
15
|
+
def to_haab(jd: float) -> tuple[int, str]: ...
|
|
16
|
+
def to_tzolkin(jd: float) -> tuple[int, str]: ...
|
|
17
|
+
def lc_to_haab(baktun: int, katun: int, tun: int, uinal: int, kin: int) -> tuple[int, str]: ...
|
|
18
|
+
def lc_to_tzolkin(baktun: int, katun: int, tun: int, uinal: int, kin: int) -> tuple[int, str]: ...
|
|
19
|
+
def lc_to_haab_tzolkin(baktun: int, katun: int, tun: int, uinal: int, kin: int) -> str: ...
|
|
20
|
+
def translate_haab(h: str) -> str | None: ...
|
|
21
|
+
def translate_tzolkin(tz: str) -> str | None: ...
|
|
22
|
+
def tzolkin_generator(number: int | None = None, name: str | None = None) -> Generator[tuple[int, str]]: ...
|
|
23
|
+
def longcount_generator(
|
|
24
|
+
baktun: int, katun: int, tun: int, uinal: int, kin: int
|
|
25
|
+
) -> Generator[tuple[int, int, int, int, int], None, NoReturn]: ...
|
|
26
|
+
def next_haab(month: str, jd: float) -> float: ...
|
|
27
|
+
def next_tzolkin(tzolkin: tuple[int, str], jd: float) -> float: ...
|
|
28
|
+
def next_tzolkin_haab(tzolkin: tuple[int, str], haab: tuple[int, str], jd: float) -> float: ...
|
|
29
|
+
def month_length(month: str) -> Literal[5, 20]: ...
|
|
30
|
+
@overload
|
|
31
|
+
def haab_monthcalendar(
|
|
32
|
+
baktun: int, katun: int, tun: int, uinal: int, kin: int, jdc: None = None
|
|
33
|
+
) -> list[list[tuple[int | None, tuple[int, str] | None, tuple[int, int, int, int, int] | None]]]: ...
|
|
34
|
+
@overload
|
|
35
|
+
def haab_monthcalendar(
|
|
36
|
+
baktun: Unused = None, katun: Unused = None, tun: Unused = None, uinal: Unused = None, kin: Unused = None, jdc: float = ...
|
|
37
|
+
) -> list[list[tuple[int | None, tuple[int, str] | None, tuple[int, int, int, int, int] | None]]]: ...
|
|
38
|
+
def haab_monthcalendar_prospective(
|
|
39
|
+
haabmonth: str, jdc: float
|
|
40
|
+
) -> list[list[tuple[int | None, tuple[int, str] | None, tuple[int, int, int, int, int] | None]]]: ...
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 1948320.5
|
|
4
|
+
WEEKDAYS: Final[tuple[str, ...]]
|
|
5
|
+
MONTHS: Final[list[str]]
|
|
6
|
+
HAS_31_DAYS: Final = (1, 2, 3, 4, 5, 6)
|
|
7
|
+
HAS_30_DAYS: Final = (7, 8, 9, 10, 11)
|
|
8
|
+
|
|
9
|
+
def leap(year: int) -> bool: ...
|
|
10
|
+
def equinox_jd(gyear: int) -> int: ...
|
|
11
|
+
def last_equinox_jd(jd: float) -> int: ...
|
|
12
|
+
def jd_to_pyear(jd: float) -> tuple[int, int]: ...
|
|
13
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
14
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
15
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
16
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
17
|
+
def month_length(year: int, month: int) -> Literal[29, 30, 31]: ...
|
|
18
|
+
def monthcalendar(year: int, month: int) -> list[list[int | None]]: ...
|
|
19
|
+
def format(year: int, month: int, day: int) -> str: ...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing import Final, Literal
|
|
2
|
+
|
|
3
|
+
EPOCH: Final = 2374479.5
|
|
4
|
+
YEAR_EPOCH: Final = 1789
|
|
5
|
+
DAYS_IN_YEAR: Final = 365
|
|
6
|
+
MONTHS: Final[tuple[str, ...]]
|
|
7
|
+
|
|
8
|
+
def legal_date(year: int, month: int, day: int) -> Literal[True]: ...
|
|
9
|
+
def to_jd(year: int, month: int, day: int) -> float: ...
|
|
10
|
+
def from_jd(jd: float) -> tuple[int, int, int]: ...
|
|
11
|
+
def from_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
12
|
+
def to_gregorian(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
|
13
|
+
def dayname(year: int, month: int, day: int) -> tuple[str, str]: ...
|
|
14
|
+
def weekday(day: int) -> int: ...
|
|
15
|
+
def festival(month: int, day: int) -> str | None: ...
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from typing import Final, Literal, overload
|
|
2
|
+
|
|
3
|
+
TROPICALYEAR: Final[float]
|
|
4
|
+
|
|
5
|
+
@overload
|
|
6
|
+
def amod(a: float, b: int) -> int: ...
|
|
7
|
+
@overload
|
|
8
|
+
def amod(a: float, b: float) -> float: ...
|
|
9
|
+
def jwday(j: float) -> int: ...
|
|
10
|
+
@overload
|
|
11
|
+
def weekday_before(weekday: int, jd: int) -> int: ...
|
|
12
|
+
@overload
|
|
13
|
+
def weekday_before(weekday: int, jd: float) -> float: ...
|
|
14
|
+
@overload
|
|
15
|
+
def search_weekday(weekday: int, jd: int, direction: Literal[-1, 1], offset: int) -> int: ...
|
|
16
|
+
@overload
|
|
17
|
+
def search_weekday(weekday: int, jd: float, direction: Literal[-1, 1], offset: int) -> float: ...
|
|
18
|
+
@overload
|
|
19
|
+
def nearest_weekday(weekday: int, jd: int) -> int: ...
|
|
20
|
+
@overload
|
|
21
|
+
def nearest_weekday(weekday: int, jd: float) -> float: ...
|
|
22
|
+
@overload
|
|
23
|
+
def next_weekday(weekday: int, jd: int) -> int: ...
|
|
24
|
+
@overload
|
|
25
|
+
def next_weekday(weekday: int, jd: float) -> float: ...
|
|
26
|
+
@overload
|
|
27
|
+
def next_or_current_weekday(weekday: int, jd: int) -> int: ...
|
|
28
|
+
@overload
|
|
29
|
+
def next_or_current_weekday(weekday: int, jd: float) -> float: ...
|
|
30
|
+
@overload
|
|
31
|
+
def previous_weekday(weekday: int, jd: int) -> int: ...
|
|
32
|
+
@overload
|
|
33
|
+
def previous_weekday(weekday: int, jd: float) -> float: ...
|
|
34
|
+
@overload
|
|
35
|
+
def previous_or_current_weekday(weekday: int, jd: int) -> int: ...
|
|
36
|
+
@overload
|
|
37
|
+
def previous_or_current_weekday(weekday: int, jd: float) -> float: ...
|
|
38
|
+
@overload
|
|
39
|
+
def n_weeks(weekday: int, jd: int, nthweek: int) -> int: ...
|
|
40
|
+
@overload
|
|
41
|
+
def n_weeks(weekday: int, jd: float, nthweek: int) -> float: ...
|
|
42
|
+
def monthcalendarhelper(start_weekday: int, month_length: int) -> list[list[int | None]]: ...
|
|
43
|
+
def nth_day_of_month(n: int, weekday: int, month: int, year: int) -> tuple[int, int, int]: ...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: types-convertdate
|
|
3
|
+
Version: 2.4.0.20250827
|
|
4
|
+
Summary: Typing stubs for convertdate
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Homepage, https://github.com/python/typeshed
|
|
7
|
+
Project-URL: GitHub, https://github.com/python/typeshed
|
|
8
|
+
Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/convertdate.md
|
|
9
|
+
Project-URL: Issue tracker, https://github.com/python/typeshed/issues
|
|
10
|
+
Project-URL: Chat, https://gitter.im/python/typing
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Typing :: Stubs Only
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
## Typing stubs for convertdate
|
|
19
|
+
|
|
20
|
+
This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html)
|
|
21
|
+
for the [`convertdate`](https://github.com/fitnr/convertdate) package. It can be used by type checkers
|
|
22
|
+
to check code that uses `convertdate`. This version of
|
|
23
|
+
`types-convertdate` aims to provide accurate annotations for
|
|
24
|
+
`convertdate==2.4.*`.
|
|
25
|
+
|
|
26
|
+
This package is part of the [typeshed project](https://github.com/python/typeshed).
|
|
27
|
+
All fixes for types and metadata should be contributed there.
|
|
28
|
+
See [the README](https://github.com/python/typeshed/blob/main/README.md)
|
|
29
|
+
for more details. The source for this package can be found in the
|
|
30
|
+
[`stubs/convertdate`](https://github.com/python/typeshed/tree/main/stubs/convertdate)
|
|
31
|
+
directory.
|
|
32
|
+
|
|
33
|
+
This package was tested with the following type checkers:
|
|
34
|
+
* [mypy](https://github.com/python/mypy/) 1.17.1
|
|
35
|
+
* [pyright](https://github.com/microsoft/pyright) 1.1.404
|
|
36
|
+
|
|
37
|
+
It was generated from typeshed commit
|
|
38
|
+
[`4fa56fbc236c99159c6132254d8f182598469df8`](https://github.com/python/typeshed/commit/4fa56fbc236c99159c6132254d8f182598469df8).
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
convertdate-stubs/METADATA.toml,sha256=05rquq9h0nSEGk6AXxMaGbdeM4SW_HKxGX5KTilIEnw,79
|
|
2
|
+
convertdate-stubs/__init__.pyi,sha256=b_3qLxbP33PbdbOO4Sq7B62xXFGgMyWR1OlXXhBOMIA,871
|
|
3
|
+
convertdate-stubs/armenian.pyi,sha256=PoNf2u9IOHjVa0kpc-8IrZbc9yjTHcmxbpmIMpvnbSQ,1365
|
|
4
|
+
convertdate-stubs/bahai.pyi,sha256=9F6irFdtYoip6oKy-CTukvFJmSegQp1mJqQu4TIzjXo,1170
|
|
5
|
+
convertdate-stubs/coptic.pyi,sha256=Gu5UDqaWH-PqXqturmtsxDg4CHHOsJ86NBqL1ugT7pI,681
|
|
6
|
+
convertdate-stubs/daycount.pyi,sha256=z96l4JlRXr71PEFaugqu0FKFXmhsu_p3eOyhN-6bJkA,595
|
|
7
|
+
convertdate-stubs/dublin.pyi,sha256=RX57xqaU1uSYj1MJvUyX9MRbga0poHqxUGdrVGjGyfE,481
|
|
8
|
+
convertdate-stubs/french_republican.pyi,sha256=TkXkK250f2eFdquMcWHhIxbdBc88MkQsA_eR1Lda7dg,1176
|
|
9
|
+
convertdate-stubs/gregorian.pyi,sha256=_Qh7dNIGWyB3dqBWilugvdEc8tjIF3NcRfrqOcjh4sQ,828
|
|
10
|
+
convertdate-stubs/hebrew.pyi,sha256=o8L26Yob_iLGh-GaT7n4izIgbHycwHjszkvsod0Lktw,1234
|
|
11
|
+
convertdate-stubs/holidays.pyi,sha256=R3dyZ26MW-DbgaWNi9m_yJtyseB0d_ZvdMXWX7MgFqY,6973
|
|
12
|
+
convertdate-stubs/indian_civil.pyi,sha256=dBkhWrxFx1BBQ65fsSLuNGUU0u79Xxbr1459IYIFj-M,752
|
|
13
|
+
convertdate-stubs/islamic.pyi,sha256=vL0V7PT0rujYFU0Sc7ELKoqiVyGamZ1x-CUDXzjNNr4,868
|
|
14
|
+
convertdate-stubs/iso.pyi,sha256=XfWC1ATT8PUyWTLtOwvkPjYLuifvhVbppkfJF5Dmv2o,543
|
|
15
|
+
convertdate-stubs/julian.pyi,sha256=LwY80RaxRpZVYZBeaNGdJ6uWi92NXqmk8U4UzPMQ1uQ,886
|
|
16
|
+
convertdate-stubs/julianday.pyi,sha256=6-4tyg2kUJz3jbn-k-ayHAkNfU_PcAP6SAVZqmcOALU,368
|
|
17
|
+
convertdate-stubs/mayan.pyi,sha256=PynOjrdmlThIhSi3kMeVvtoiQBmHRHXBEMk2OjITzgA,2267
|
|
18
|
+
convertdate-stubs/ordinal.pyi,sha256=Km12iS-mTrHLmFdsuEW4GWXb3nQtY6CTMpNeSWJ2Mf8,247
|
|
19
|
+
convertdate-stubs/persian.pyi,sha256=OfzfJdFDAMIsgWgCgdXUcyJmlsCJgDQYJJbw32bekc4,829
|
|
20
|
+
convertdate-stubs/positivist.pyi,sha256=3Cs4HTMt0_UxF4OS5OB57bgi_AAQo9YBlxdb2CtP3Ks,639
|
|
21
|
+
convertdate-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
+
convertdate-stubs/utils.pyi,sha256=HMGD4XtlKhzezSAa4ahjGOCnjctXYYjmL4Gq9mWykSY,1592
|
|
23
|
+
convertdate-stubs/data/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
+
convertdate-stubs/data/french_republican_days.pyi,sha256=PeyOKidhFI03kxYl6UXfkImleK9rcDu082fIsslaEts,78
|
|
25
|
+
convertdate-stubs/data/positivist.pyi,sha256=FsEtI-rX2FrIlTlJbwP14cewiZ_DCS8HtudqEz1KWbA,183
|
|
26
|
+
types_convertdate-2.4.0.20250827.dist-info/licenses/LICENSE,sha256=KV-FOMlK5cMEMwHPfP8chS2ranhqjd7kceBhtA1eyr4,12657
|
|
27
|
+
types_convertdate-2.4.0.20250827.dist-info/METADATA,sha256=yAV3WBE9dknDFMQsDiwHcP4LUyc_MdG57l9TimCRHXc,1770
|
|
28
|
+
types_convertdate-2.4.0.20250827.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
29
|
+
types_convertdate-2.4.0.20250827.dist-info/top_level.txt,sha256=97NVYBRoUFi-jNaZhOF04e-nYfhK6bt5khs4SaCOSqA,18
|
|
30
|
+
types_convertdate-2.4.0.20250827.dist-info/RECORD,,
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
The "typeshed" project is licensed under the terms of the Apache license, as
|
|
2
|
+
reproduced below.
|
|
3
|
+
|
|
4
|
+
= = = = =
|
|
5
|
+
|
|
6
|
+
Apache License
|
|
7
|
+
Version 2.0, January 2004
|
|
8
|
+
http://www.apache.org/licenses/
|
|
9
|
+
|
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
11
|
+
|
|
12
|
+
1. Definitions.
|
|
13
|
+
|
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
15
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
16
|
+
|
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
18
|
+
the copyright owner that is granting the License.
|
|
19
|
+
|
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
21
|
+
other entities that control, are controlled by, or are under common
|
|
22
|
+
control with that entity. For the purposes of this definition,
|
|
23
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
24
|
+
direction or management of such entity, whether by contract or
|
|
25
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
26
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
27
|
+
|
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
29
|
+
exercising permissions granted by this License.
|
|
30
|
+
|
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
32
|
+
including but not limited to software source code, documentation
|
|
33
|
+
source, and configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical
|
|
36
|
+
transformation or translation of a Source form, including but
|
|
37
|
+
not limited to compiled object code, generated documentation,
|
|
38
|
+
and conversions to other media types.
|
|
39
|
+
|
|
40
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
41
|
+
Object form, made available under the License, as indicated by a
|
|
42
|
+
copyright notice that is included in or attached to the work
|
|
43
|
+
(an example is provided in the Appendix below).
|
|
44
|
+
|
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
51
|
+
the Work and Derivative Works thereof.
|
|
52
|
+
|
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
|
54
|
+
the original version of the Work and any modifications or additions
|
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
66
|
+
|
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
69
|
+
subsequently incorporated within the Work.
|
|
70
|
+
|
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
|
77
|
+
|
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
83
|
+
where such license applies only to those patent claims licensable
|
|
84
|
+
by such Contributor that are necessarily infringed by their
|
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
87
|
+
institute patent litigation against any entity (including a
|
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
90
|
+
or contributory patent infringement, then any patent licenses
|
|
91
|
+
granted to You under this License for that Work shall terminate
|
|
92
|
+
as of the date such litigation is filed.
|
|
93
|
+
|
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
96
|
+
modifications, and in Source or Object form, provided that You
|
|
97
|
+
meet the following conditions:
|
|
98
|
+
|
|
99
|
+
(a) You must give any other recipients of the Work or
|
|
100
|
+
Derivative Works a copy of this License; and
|
|
101
|
+
|
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
|
103
|
+
stating that You changed the files; and
|
|
104
|
+
|
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
|
107
|
+
attribution notices from the Source form of the Work,
|
|
108
|
+
excluding those notices that do not pertain to any part of
|
|
109
|
+
the Derivative Works; and
|
|
110
|
+
|
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
|
113
|
+
include a readable copy of the attribution notices contained
|
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
|
116
|
+
of the following places: within a NOTICE text file distributed
|
|
117
|
+
as part of the Derivative Works; within the Source form or
|
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
|
119
|
+
within a display generated by the Derivative Works, if and
|
|
120
|
+
wherever such third-party notices normally appear. The contents
|
|
121
|
+
of the NOTICE file are for informational purposes only and
|
|
122
|
+
do not modify the License. You may add Your own attribution
|
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
125
|
+
that such additional attribution notices cannot be construed
|
|
126
|
+
as modifying the License.
|
|
127
|
+
|
|
128
|
+
You may add Your own copyright statement to Your modifications and
|
|
129
|
+
may provide additional or different license terms and conditions
|
|
130
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
131
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
132
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
133
|
+
the conditions stated in this License.
|
|
134
|
+
|
|
135
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
136
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
137
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
138
|
+
this License, without any additional terms or conditions.
|
|
139
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
140
|
+
the terms of any separate license agreement you may have executed
|
|
141
|
+
with Licensor regarding such Contributions.
|
|
142
|
+
|
|
143
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
144
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
145
|
+
except as required for reasonable and customary use in describing the
|
|
146
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
147
|
+
|
|
148
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
149
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
150
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
152
|
+
implied, including, without limitation, any warranties or conditions
|
|
153
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
154
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
155
|
+
appropriateness of using or redistributing the Work and assume any
|
|
156
|
+
risks associated with Your exercise of permissions under this License.
|
|
157
|
+
|
|
158
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
159
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
160
|
+
unless required by applicable law (such as deliberate and grossly
|
|
161
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
162
|
+
liable to You for damages, including any direct, indirect, special,
|
|
163
|
+
incidental, or consequential damages of any character arising as a
|
|
164
|
+
result of this License or out of the use or inability to use the
|
|
165
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
166
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
167
|
+
other commercial damages or losses), even if such Contributor
|
|
168
|
+
has been advised of the possibility of such damages.
|
|
169
|
+
|
|
170
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
171
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
172
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
173
|
+
or other liability obligations and/or rights consistent with this
|
|
174
|
+
License. However, in accepting such obligations, You may act only
|
|
175
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
176
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
177
|
+
defend, and hold each Contributor harmless for any liability
|
|
178
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
179
|
+
of your accepting any such warranty or additional liability.
|
|
180
|
+
|
|
181
|
+
END OF TERMS AND CONDITIONS
|
|
182
|
+
|
|
183
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
184
|
+
|
|
185
|
+
To apply the Apache License to your work, attach the following
|
|
186
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
187
|
+
replaced with your own identifying information. (Don't include
|
|
188
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
189
|
+
comment syntax for the file format. We also recommend that a
|
|
190
|
+
file or class name and description of purpose be included on the
|
|
191
|
+
same "printed page" as the copyright notice for easier
|
|
192
|
+
identification within third-party archives.
|
|
193
|
+
|
|
194
|
+
Copyright {yyyy} {name of copyright owner}
|
|
195
|
+
|
|
196
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
+
you may not use this file except in compliance with the License.
|
|
198
|
+
You may obtain a copy of the License at
|
|
199
|
+
|
|
200
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
201
|
+
|
|
202
|
+
Unless required by applicable law or agreed to in writing, software
|
|
203
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
+
See the License for the specific language governing permissions and
|
|
206
|
+
limitations under the License.
|
|
207
|
+
|
|
208
|
+
= = = = =
|
|
209
|
+
|
|
210
|
+
Parts of typeshed are licensed under different licenses (like the MIT
|
|
211
|
+
license), reproduced below.
|
|
212
|
+
|
|
213
|
+
= = = = =
|
|
214
|
+
|
|
215
|
+
The MIT License
|
|
216
|
+
|
|
217
|
+
Copyright (c) 2015 Jukka Lehtosalo and contributors
|
|
218
|
+
|
|
219
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
220
|
+
copy of this software and associated documentation files (the "Software"),
|
|
221
|
+
to deal in the Software without restriction, including without limitation
|
|
222
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
223
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
224
|
+
Software is furnished to do so, subject to the following conditions:
|
|
225
|
+
|
|
226
|
+
The above copyright notice and this permission notice shall be included in
|
|
227
|
+
all copies or substantial portions of the Software.
|
|
228
|
+
|
|
229
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
230
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
231
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
232
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
233
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
234
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
235
|
+
DEALINGS IN THE SOFTWARE.
|
|
236
|
+
|
|
237
|
+
= = = = =
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
convertdate-stubs
|