Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-697

Migrate to timedelta/datetime from FiniteDuration/Seconds etc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.0-beta.2
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Ellis.Breen Ellis Breen
            david.kelly David Kelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty