Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
I am not exactly sure what feels right here, but having our own Seconds doesn't seem too idiomatic. Perhaps
date = timedelta(seconds=3) |
#or
|
date = timedelta(milliseconds=100) |
and using that date seems more idiomatic?
The date can always be converted:
date.total_seconds() # a float so feel free to / 1000 or /1000000 for milli or microseconds |
Probably there are other possibilities too, thoughts?
Attachments
For Gerrit Dashboard: PYCBC-697 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
118975,7 | PYCBC-666, PYCBC-697: Migrate to timedelta, add timeouts to get/store/mgmt calls | master | couchbase-python-client | Status: MERGED | +2 | +1 |
119655,6 | PYCBC-697: Migrate to timedelta/datetime from FiniteDuration/Seconds etc | master | couchbase-python-client | Status: ABANDONED | -1 | 0 |