dately 2.0.3__tar.gz → 2.0.5__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-2.0.3 → dately-2.0.5}/PKG-INFO +1 -1
- {dately-2.0.3 → dately-2.0.5}/dately/timeutils.py +21 -1
- {dately-2.0.3 → dately-2.0.5}/dately.egg-info/PKG-INFO +1 -1
- {dately-2.0.3 → dately-2.0.5}/setup.py +1 -1
- {dately-2.0.3 → dately-2.0.5}/README.md +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/__init__.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/core.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/__init__.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/Compiled.cp38-win_amd64.pyd +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/__init__.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/cdatetime/UniversalDateFormatter.cp38-win_amd64.pyd +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/cdatetime/__init__.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/cdatetime/iso8601T.cp38-win_amd64.pyd +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/cdatetime/iso8601Z.cp38-win_amd64.pyd +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/cdatetime/whichformat.cp38-win_amd64.pyd +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/clean_str.cp38-win_amd64.pyd +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mold/pyd/time_zones.cp38-win_amd64.pyd +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/mskutils.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/sysutils.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/timezone.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately/utils.py +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately.egg-info/SOURCES.txt +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately.egg-info/dependency_links.txt +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately.egg-info/requires.txt +0 -0
- {dately-2.0.3 → dately-2.0.5}/dately.egg-info/top_level.txt +0 -0
- {dately-2.0.3 → dately-2.0.5}/setup.cfg +0 -0
|
@@ -11,6 +11,9 @@ from .mold.pyd.Compiled import (
|
|
|
11
11
|
timeboundary_regex,
|
|
12
12
|
time_only_regex,
|
|
13
13
|
timezone_offset_regex,
|
|
14
|
+
timezone_abbreviation_regex,
|
|
15
|
+
iana_timezone_identifier_regex,
|
|
16
|
+
full_timezone_name_regex,
|
|
14
17
|
get_time_fragment as gtf,
|
|
15
18
|
)
|
|
16
19
|
|
|
@@ -168,6 +171,23 @@ def stripTimeZone(datetime_string):
|
|
|
168
171
|
|
|
169
172
|
return datetime_string
|
|
170
173
|
|
|
174
|
+
# def remove_marker(text):
|
|
175
|
+
# """
|
|
176
|
+
# Removes ' NO_MERIDIEM_NO_TIMEZONE_NO_OFFSET' from the provided text.
|
|
177
|
+
#
|
|
178
|
+
# Parameters:
|
|
179
|
+
# text (str): The input text from which the marker needs to be removed.
|
|
180
|
+
#
|
|
181
|
+
# Returns:
|
|
182
|
+
# str: The cleaned text without the specified marker.
|
|
183
|
+
# """
|
|
184
|
+
# # Define the regex pattern to match the specific string to remove
|
|
185
|
+
# pattern = re.compile(r" NO_MERIDIEM_NO_TIMEZONE_NO_OFFSET")
|
|
186
|
+
#
|
|
187
|
+
# # Replace the matched string with nothing (effectively removing it)
|
|
188
|
+
# cleaned_text = pattern.sub("", text)
|
|
189
|
+
# return cleaned_text
|
|
190
|
+
|
|
171
191
|
def make_datetime_string(date_string):
|
|
172
192
|
"""
|
|
173
193
|
Generate a standardized datetime string from a given date string.
|
|
@@ -339,7 +359,7 @@ def replace_time_by_position(datetime_string, component, new_value):
|
|
|
339
359
|
new_value = str(max(0, min(59, int(new_value)))).zfill(2)
|
|
340
360
|
elif component == 'microsecond':
|
|
341
361
|
if not str(new_value).isdigit():
|
|
342
|
-
return datetime_string
|
|
362
|
+
return datetime_string.replace('NO_MERIDIEM_NO_TIMEZONE_NO_OFFSET', '').strip()
|
|
343
363
|
|
|
344
364
|
time_component_pattern = gtf(component)
|
|
345
365
|
gt_time_pattern_match = timeboundary_regex.search(datetime_string)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dately-2.0.3 → dately-2.0.5}/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
|