Commit ff65ab90 authored by M. Huang's avatar M. Huang
Browse files

fix bool

parent aa8cbbc5
......@@ -193,8 +193,11 @@ class FineTime(Copyable, DeepEqual, Serializable):
return self.toString(level=2)
def __bool__(self):
""" for `if` etc """
return self.tai
""" `True` if `tai > 0`.
For `if` etc
return self.tai > 0
def __int__(self):
return self.tai
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment