We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 351f27e + ba0fea1 commit 28d41fdCopy full SHA for 28d41fd
pytimber/__init__.py
@@ -10,7 +10,7 @@
10
11
from .pagestore import PageStore
12
13
-__version__ = "2.3.3"
+__version__ = "2.3.4"
14
15
__cmmnbuild_deps__ = [
16
"accsoft-cals-extr-client",
pytimber/pytimber.py
@@ -54,6 +54,10 @@
54
)
55
56
57
+if six.PY3:
58
+ long = int
59
+
60
61
class LoggingDB(object):
62
try:
63
_jpype=jpype
@@ -102,7 +106,7 @@ def toTimestamp(self, t):
102
106
elif isinstance(t,Timestamp):
103
107
return t
104
108
else:
105
- ts = Timestamp.from_(jpype.java.util.Date(long(t*1000)).toInstant())
109
+ ts = Timestamp(long(t*1000))
110
sec = int(t)
111
nanos = int((t-sec)*1e9)
112
ts.setNanos(nanos)
0 commit comments