soia-client 1.0.24__py3-none-any.whl → 1.0.25__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.
- soia/_impl/timestamp.py +4 -0
- {soia_client-1.0.24.dist-info → soia_client-1.0.25.dist-info}/METADATA +1 -1
- {soia_client-1.0.24.dist-info → soia_client-1.0.25.dist-info}/RECORD +6 -6
- {soia_client-1.0.24.dist-info → soia_client-1.0.25.dist-info}/WHEEL +0 -0
- {soia_client-1.0.24.dist-info → soia_client-1.0.25.dist-info}/licenses/LICENSE +0 -0
- {soia_client-1.0.24.dist-info → soia_client-1.0.25.dist-info}/top_level.txt +0 -0
soia/_impl/timestamp.py
CHANGED
@@ -24,6 +24,10 @@ class Timestamp:
|
|
24
24
|
def from_unix_seconds(unix_seconds: float) -> "Timestamp":
|
25
25
|
return Timestamp(unix_millis=round(unix_seconds * 1000))
|
26
26
|
|
27
|
+
@staticmethod
|
28
|
+
def from_iso_format(date_string: str) -> "Timestamp":
|
29
|
+
return Timestamp.from_datetime(datetime.datetime.fromisoformat(date_string))
|
30
|
+
|
27
31
|
@staticmethod
|
28
32
|
def from_datetime(dt: datetime.datetime) -> "Timestamp":
|
29
33
|
return Timestamp.from_unix_seconds(dt.timestamp())
|
@@ -17,10 +17,10 @@ soia/_impl/serializers.py,sha256=IL9jHHMo11pgrL1-crarOEElvTyV5YM6FTcgumjW6IU,256
|
|
17
17
|
soia/_impl/service.py,sha256=PsV286BYMoJpXIjeBc__MHHakcqof0Pbb3B_Zha1PZI,11928
|
18
18
|
soia/_impl/service_client.py,sha256=NtaJmkk7DShLKZm_QOzQtboXqmfKvdLRym1EZ-EbJQI,5319
|
19
19
|
soia/_impl/structs.py,sha256=KrqucOqSxXda4-3gKyCmx_Oj4osTFBLk9ORyRkV_7dk,26785
|
20
|
-
soia/_impl/timestamp.py,sha256=
|
20
|
+
soia/_impl/timestamp.py,sha256=McEdyDDwaR8_2Mmi-MUY7dUT2sMR-yEGkTZWdBH5b4U,4240
|
21
21
|
soia/_impl/type_adapter.py,sha256=RyIyh4Fnt9rMy0HRzC-a2v2JAdZsV9FBzoGEUVygVRE,2101
|
22
|
-
soia_client-1.0.
|
23
|
-
soia_client-1.0.
|
24
|
-
soia_client-1.0.
|
25
|
-
soia_client-1.0.
|
26
|
-
soia_client-1.0.
|
22
|
+
soia_client-1.0.25.dist-info/licenses/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
|
23
|
+
soia_client-1.0.25.dist-info/METADATA,sha256=hSiSG-D9zQrxRJYCVOn-K7FB9x6iV3teXm1NMJBdDBM,2122
|
24
|
+
soia_client-1.0.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
25
|
+
soia_client-1.0.25.dist-info/top_level.txt,sha256=lsYG9JrvauFe1oIV5zvnwsS9hsx3ztwfK_937op9mxc,5
|
26
|
+
soia_client-1.0.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|