Skip to content

READY: Make Riak TS timestamp conversion optional#455

Merged
lukebakken merged 5 commits intomasterfrom
fixes/lrb/timestamp-encoding-gh-454
May 2, 2016
Merged

READY: Make Riak TS timestamp conversion optional#455
lukebakken merged 5 commits intomasterfrom
fixes/lrb/timestamp-encoding-gh-454

Conversation

@lukebakken
Copy link
Copy Markdown
Contributor

@lukebakken lukebakken commented Apr 29, 2016

Resolves #454 (CLIENTS-181) (CLIENTS-832)

  • Improve unix timestamp -> datetime conversion
  • Update to riak_pb 2.1.3.0

@lukebakken lukebakken self-assigned this Apr 29, 2016
@lukebakken lukebakken added this to the riak-python-client-2.5.0 milestone Apr 29, 2016
@lukebakken lukebakken changed the title WIP: Make Riak TS timestamp conversion optional READY: Make Riak TS timestamp conversion optional Apr 29, 2016
@lukebakken lukebakken assigned hazen and unassigned lukebakken Apr 29, 2016
Comment thread riak/util.py
return int(td.total_seconds() * 1000.0)
tdms = ((td.days * 24 * 3600) + td.seconds) * 1000
ms = td.microseconds // 1000
return tdms + ms
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

total_seconds() can DIAF

@lukebakken lukebakken merged commit a12f6fd into master May 2, 2016
@lukebakken lukebakken deleted the fixes/lrb/timestamp-encoding-gh-454 branch May 2, 2016 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants