dately 3.2.0__tar.gz → 3.2.2__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.
- {dately-3.2.0 → dately-3.2.2}/PKG-INFO +3 -3
- {dately-3.2.0 → dately-3.2.2}/dately/_version.py +1 -1
- {dately-3.2.0 → dately-3.2.2}/dately/core.py +6 -1
- {dately-3.2.0 → dately-3.2.2}/dately.egg-info/PKG-INFO +3 -3
- {dately-3.2.0 → dately-3.2.2}/MANIFEST.in +0 -0
- {dately-3.2.0 → dately-3.2.2}/README.md +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/__envutils.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/__os_config.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/__user_agents_config.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_api.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_connect.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_datetime_scan.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_holiday.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_log.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_mskutils.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_proxy.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_sysutils.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_temporal_scan.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_timeutils.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_timezone.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_utils.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/_webutils.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/arithmetic.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/lexical_validation/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/lexical_validation/vocabulary_checks.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/quantified_time.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/relative_time.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/semantic_validation/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/semantic_validation/unit_bounds.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/string_similarity/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/string_similarity/spell_correction.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/syntactic_validation/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/syntactic_validation/structure_validator.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/syntactic_validation/temporal_structure_rules.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/temporal_core/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/temporal_core/temporal_units.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/temporal_preprocessing.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/files/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/files/country_variants.json +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/files/holiday.json +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/files/os_versions.json +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/files/timezone_data.json +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/files/user_agents.json +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/include/clean_str.h +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/include/iso8601T.h +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/include/iso8601Z.h +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/include/root_dir_search.h +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/include/time_zones.h +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/Compiled.cp38-win_amd64.pyd +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/cdatetime/UniversalDateFormatter.cp38-win_amd64.pyd +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/cdatetime/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/cdatetime/iso8601T.cp38-win_amd64.pyd +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/cdatetime/iso8601Z.cp38-win_amd64.pyd +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/cdatetime/whichformat.cp38-win_amd64.pyd +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/clean_str.cp38-win_amd64.pyd +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/time_zones.cp38-win_amd64.pyd +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyx/Compiled.pyx +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyx/UniversalDateFormatter.pyx +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyx/clean_str.pyx +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyx/iso8601T.pyx +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyx/iso8601Z.pyx +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyx/time_zones.pyx +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/pyx/whichformat.pyx +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/Compiled.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/UniversalDateFormatter.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/clean_str.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/clean_str_impl.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/iso8601T.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/iso8601T_impl.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/iso8601Z.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/iso8601Z_impl.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/root_dir_search_impl.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/time_zones.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/time_zones_impl.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/mold/src/whichformat.c +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/tests/__init__.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately/tests/test_parse.py +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately.egg-info/SOURCES.txt +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately.egg-info/dependency_links.txt +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately.egg-info/requires.txt +0 -0
- {dately-3.2.0 → dately-3.2.2}/dately.egg-info/top_level.txt +0 -0
- {dately-3.2.0 → dately-3.2.2}/setup.cfg +0 -0
- {dately-3.2.0 → dately-3.2.2}/setup.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dately
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2
|
|
4
4
|
Summary: A comprehensive Python library for advanced date and time manipulation.
|
|
5
|
-
Home-page: https://github.com/cedricmoorejr/dately/tree/v3.2.
|
|
5
|
+
Home-page: https://github.com/cedricmoorejr/dately/tree/v3.2.2
|
|
6
6
|
Author: Cedric Moore Jr.
|
|
7
7
|
Author-email: cedricmoorejunior5@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Project-URL: Source Code, https://github.com/cedricmoorejr/dately/releases/tag/v3.2.
|
|
9
|
+
Project-URL: Source Code, https://github.com/cedricmoorejr/dately/releases/tag/v3.2.2
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
12
|
Classifier: Operating System :: Microsoft :: Windows
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# execution—if applicable—encapsulated in class and function constructs.
|
|
7
7
|
# In minimal implementations, this may simply define constants, metadata,
|
|
8
8
|
# or serve as an interface placeholder.
|
|
9
|
-
__version__ = "3.2.
|
|
9
|
+
__version__ = "3.2.2"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
__all__ = ['__version__']
|
|
@@ -420,7 +420,9 @@ def convert_date(dates, to_format=None, delta=0, dict_keys=None, dict_inplace=Fa
|
|
|
420
420
|
input_format = replace_non_padded_with_padded(input_format)
|
|
421
421
|
parsed_date = dt.strptime(date, input_format) + td(days=int(delta))
|
|
422
422
|
|
|
423
|
-
if to_format
|
|
423
|
+
if to_format:
|
|
424
|
+
if isinstance(parsed_date, d) and not isinstance(parsed_date, dt):
|
|
425
|
+
parsed_date = dt.combine(parsed_date, dt.min.time())
|
|
424
426
|
return date_format_leading_zero(parsed_date, to_format)
|
|
425
427
|
else:
|
|
426
428
|
return parsed_date
|
|
@@ -459,6 +461,9 @@ def convert_date(dates, to_format=None, delta=0, dict_keys=None, dict_inplace=Fa
|
|
|
459
461
|
return
|
|
460
462
|
else:
|
|
461
463
|
return processed_data
|
|
464
|
+
# handle single datetime/date directly
|
|
465
|
+
elif isinstance(dates, (dt, d)):
|
|
466
|
+
return process(dates, to_format=to_format, delta=delta)
|
|
462
467
|
else:
|
|
463
468
|
# For all other types, use the helper to dispatch.
|
|
464
469
|
return _apply_to_data(dates, process, to_format=to_format, delta=delta)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dately
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2
|
|
4
4
|
Summary: A comprehensive Python library for advanced date and time manipulation.
|
|
5
|
-
Home-page: https://github.com/cedricmoorejr/dately/tree/v3.2.
|
|
5
|
+
Home-page: https://github.com/cedricmoorejr/dately/tree/v3.2.2
|
|
6
6
|
Author: Cedric Moore Jr.
|
|
7
7
|
Author-email: cedricmoorejunior5@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Project-URL: Source Code, https://github.com/cedricmoorejr/dately/releases/tag/v3.2.
|
|
9
|
+
Project-URL: Source Code, https://github.com/cedricmoorejr/dately/releases/tag/v3.2.2
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
12
|
Classifier: Operating System :: Microsoft :: Windows
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dately-3.2.0 → dately-3.2.2}/dately/dt_nlp/syntactic_validation/temporal_structure_rules.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dately-3.2.0 → dately-3.2.2}/dately/mold/pyd/cdatetime/UniversalDateFormatter.cp38-win_amd64.pyd
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|