none-shall-parse 0.4.5__tar.gz → 0.4.7__tar.gz
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.
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/PKG-INFO +1 -1
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/pyproject.toml +1 -1
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/src/none_shall_parse/__init__.py +2 -2
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/src/none_shall_parse/dates.py +4 -0
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/README.md +0 -0
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/src/none_shall_parse/imeis.py +0 -0
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/src/none_shall_parse/lists.py +0 -0
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/src/none_shall_parse/parse.py +0 -0
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/src/none_shall_parse/strings.py +0 -0
- {none_shall_parse-0.4.5 → none_shall_parse-0.4.7}/src/none_shall_parse/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: none-shall-parse
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.7
|
|
4
4
|
Summary: Trinity Shared Python utilities.
|
|
5
5
|
Author: Andries Niemandt, Jan Badenhorst
|
|
6
6
|
Author-email: Andries Niemandt <andries.niemandt@trintel.co.za>, Jan Badenhorst <jan@trintel.co.za>
|
|
@@ -18,7 +18,7 @@ from .dates import (
|
|
|
18
18
|
za_ordinal_year_day_now,
|
|
19
19
|
za_ordinal_year_day_tomorrow, utc_epoch_start,
|
|
20
20
|
now_offset_n_minutes, now_offset_n_hours,
|
|
21
|
-
now_offset_n_days, get_datetime_tomorrow,
|
|
21
|
+
now_offset_n_days, now_offset_n_months, get_datetime_tomorrow,
|
|
22
22
|
get_datetime_yesterday,
|
|
23
23
|
get_utc_datetime_offset_n_days,
|
|
24
24
|
epoch_to_datetime, epoch_to_utc_datetime,
|
|
@@ -89,7 +89,7 @@ __all__ = (
|
|
|
89
89
|
"za_ordinal_year_day_now",
|
|
90
90
|
"za_ordinal_year_day_tomorrow", "utc_epoch_start",
|
|
91
91
|
"now_offset_n_minutes", "now_offset_n_hours",
|
|
92
|
-
"now_offset_n_days", "get_datetime_tomorrow",
|
|
92
|
+
"now_offset_n_days", "now_offset_n_months", "get_datetime_tomorrow",
|
|
93
93
|
"get_datetime_yesterday",
|
|
94
94
|
"get_utc_datetime_offset_n_days",
|
|
95
95
|
"epoch_to_datetime", "epoch_to_utc_datetime",
|
|
@@ -151,6 +151,10 @@ def now_offset_n_days(n: int, naive: bool = False,
|
|
|
151
151
|
return _now_offset_n_units(n, units="days", naive=naive, tz=tz)
|
|
152
152
|
|
|
153
153
|
|
|
154
|
+
def now_offset_n_months(n: int, naive: bool = False, tz: str | None = None) -> DateTime:
|
|
155
|
+
return _now_offset_n_units(n, units="months", naive=naive, tz=tz)
|
|
156
|
+
|
|
157
|
+
|
|
154
158
|
def get_datetime_tomorrow(naive: bool = False,
|
|
155
159
|
tz: str | None = None) -> DateTime:
|
|
156
160
|
"""Get tomorrow's DateTime"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|