ScriptCollection 3.5.57__py3-none-any.whl → 3.5.58__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.
@@ -109,11 +109,14 @@ class GeneralUtilities:
109
109
  @staticmethod
110
110
  @check_arguments
111
111
  def string_to_datetime(value: str) -> datetime:
112
+ if "." in value:
113
+ value = value.split(".")[0]
112
114
  return datetime.strptime(value, GeneralUtilities.__datetime_format) # value ="2022-10-06T19:26:01" for example
113
115
 
114
116
  @staticmethod
115
117
  @check_arguments
116
118
  def datetime_to_string(value: datetime) -> str:
119
+ value = datetime(year=value.year, month=value.month, day=value.day, hour=value.hour, minute=value.minute, second=value.second)
117
120
  return value.strftime(GeneralUtilities.__datetime_format) # returns "2022-10-06T19:26:01" for example
118
121
 
119
122
  @staticmethod
@@ -31,7 +31,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
31
31
  from .ProgramRunnerPopen import ProgramRunnerPopen
32
32
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
33
33
 
34
- version = "3.5.57"
34
+ version = "3.5.58"
35
35
  __version__ = version
36
36
 
37
37
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ScriptCollection
3
- Version: 3.5.57
3
+ Version: 3.5.58
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Home-page: https://github.com/anionDev/ScriptCollection
6
6
  Author: Marius Göcke
@@ -1,16 +1,16 @@
1
1
  ScriptCollection/Executables.py,sha256=j79qOgjHKgha2EW1uMfKf1Woa6rsChL0yqJgIA-YkYU,24586
2
- ScriptCollection/GeneralUtilities.py,sha256=OhxbpAa_0fTLCaVJo2KBXSxwNhZU1QoO1So5QJoNVkw,38602
2
+ ScriptCollection/GeneralUtilities.py,sha256=nlSZSsQVHWxf0Yzz4PjgZm39rgvIltVof8gL2YPgR7s,38805
3
3
  ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZfT89mU,1395
4
4
  ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4bQNM6RV6Y,2480
5
5
  ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
6
6
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
7
7
  ScriptCollection/RPStream.py,sha256=NRRHL3YSP3D9MuAV2jB_--0KUKCsvJGxeKnxgrRZ9kY,1545
8
- ScriptCollection/ScriptCollectionCore.py,sha256=Bn2chUJ4TOJyyaMg2tZD86Oa0ZeLcz4quGw8bs3ziMw,111180
8
+ ScriptCollection/ScriptCollectionCore.py,sha256=5aLp-2yjIX1oBKO891qi4tFylhkyS6ILPUaSsTwg8W4,111180
9
9
  ScriptCollection/TasksForCommonProjectStructure.py,sha256=SaX_1ulRQLmO7FzRsIMPXKq48Z7hFYuRJVLi3aJHRj8,212976
10
10
  ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- ScriptCollection-3.5.57.dist-info/METADATA,sha256=6t-Uzik1zqd8vtcodANtoQHCQrImxc_U907PSAI9XFM,7664
13
- ScriptCollection-3.5.57.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
14
- ScriptCollection-3.5.57.dist-info/entry_points.txt,sha256=AQz2mMJ787Aw5Q_ItC6Q-Mo_DGYlM_OPEkovrgsrRF0,3192
15
- ScriptCollection-3.5.57.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- ScriptCollection-3.5.57.dist-info/RECORD,,
12
+ ScriptCollection-3.5.58.dist-info/METADATA,sha256=thH2dW_FlaZFVtJ0KrhOwkBmuKDpt_D-BT2yM8zpY9w,7664
13
+ ScriptCollection-3.5.58.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
14
+ ScriptCollection-3.5.58.dist-info/entry_points.txt,sha256=AQz2mMJ787Aw5Q_ItC6Q-Mo_DGYlM_OPEkovrgsrRF0,3192
15
+ ScriptCollection-3.5.58.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ ScriptCollection-3.5.58.dist-info/RECORD,,