none-shall-parse 0.4.6__py3-none-any.whl → 0.4.7__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.
@@ -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",
none_shall_parse/dates.py CHANGED
@@ -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"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: none-shall-parse
3
- Version: 0.4.6
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>
@@ -1,10 +1,10 @@
1
- none_shall_parse/__init__.py,sha256=CTi08pRGuTem3KhOAKP_hO1oBfMzEHZymDhn4jIH0tU,3833
2
- none_shall_parse/dates.py,sha256=DRgVVAFUOHj42nIiXuMYrwOtCEsf6qz1eU0y8eP6q9o,26661
1
+ none_shall_parse/__init__.py,sha256=s4Io6JrTdMnFLmMYqsm3XVKK6YFnp3hx8ZCjWO-W9IE,3877
2
+ none_shall_parse/dates.py,sha256=Mh_BLxHlrXZHH_8Js_1C8cVdxH0Lm8A627auOrjUe0c,26822
3
3
  none_shall_parse/imeis.py,sha256=20pONoUhLKomZxAJegqSSjG72hZjYs60r8IcaRt-15M,6770
4
4
  none_shall_parse/lists.py,sha256=PKtYD8H1Z7MqbJQ5eFpsK_jgexLwiratMJiYeRMiOwc,1701
5
5
  none_shall_parse/parse.py,sha256=77bXZAtwFksRwuZ9Ax0lPxEjFpyjkQBqRa5mBc1WkF4,6843
6
6
  none_shall_parse/strings.py,sha256=F7491CJAHJjL7vdEGwoH_4S6PjaovYUS_yzVGJ-bYIE,8463
7
7
  none_shall_parse/types.py,sha256=WAgILMtW2_fm9MBpUuQvq68yXYBNd3rnSoQk70ibOd4,1320
8
- none_shall_parse-0.4.6.dist-info/WHEEL,sha256=4n27za1eEkOnA7dNjN6C5-O2rUiw6iapszm14Uj-Qmk,79
9
- none_shall_parse-0.4.6.dist-info/METADATA,sha256=6nU1Dw7l_fkpjchAq8TUQqC6y236y6G093J9Zy_gjL8,1701
10
- none_shall_parse-0.4.6.dist-info/RECORD,,
8
+ none_shall_parse-0.4.7.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
9
+ none_shall_parse-0.4.7.dist-info/METADATA,sha256=q22i0c6pLEFsiLQz0cO2riY-chiGWQ6M24Nqi0xAbes,1701
10
+ none_shall_parse-0.4.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.13
2
+ Generator: uv 0.8.24
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any