We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90836a7 commit d360f21Copy full SHA for d360f21
src/sttp/ticks.py
@@ -165,11 +165,11 @@ def to_string(ticks: np.uint64, timespec: str = 'microseconds') -> str:
165
"""
166
Standard timestamp representation for a Ticks value, e.g., 2006-01-02 15:04:05.999999999.
167
168
- return Ticks.to_datetime(ticks).isoformat(sep=' ', timespec=timespec)
+ return Ticks.to_datetime(ticks).isoformat(sep=' ', timespec=timespec).split("+")[0]
169
170
@staticmethod
171
def to_shortstring(ticks: np.uint64) -> str:
172
173
Shows just the timestamp portion of a Ticks value with milliseconds, e.g., 15:04:05.999.
174
175
- return Ticks.to_string(ticks, "milliseconds").split("+")[0]
+ return Ticks.to_string(ticks, "milliseconds").split(" ")[1]
0 commit comments