FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Pubsub: Make 'Message.publish_time' return datetime by tseaver · Pull Request #5633 · googleapis/google-cloud-python · GitHub

Pubsub: Make 'Message.publish_time' return datetime - #5633

Merged
tseaver merged 2 commits into
masterfrom
5598-pubsub-message-publish_time-as-datetime
Jul 17, 2018
Merged

Pubsub: Make 'Message.publish_time' return datetime#5633
tseaver merged 2 commits into
masterfrom
5598-pubsub-message-publish_time-as-datetime

Conversation

tseaver commented Jul 16, 2018

Copy link
Copy Markdown
Contributor

Closes #5598

tseaver added 2 commits July 16, 2018 17:04
Derive from known datetime.
Rather than a 'google.protobuf.timestamp_pb2.Timestamp' instance.

Closes #5598.
tseaver added the api: pubsub Issues related to the Pub/Sub API. label Jul 16, 2018
tseaver requested review from theacodes and tswast July 16, 2018 21:39
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 16, 2018
timestamp = self._message.publish_time
delta = datetime.timedelta(
seconds=timestamp.seconds,
microseconds=timestamp.nanos // 1000)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

tseaver merged commit 861d51a into master Jul 17, 2018
tseaver deleted the 5598-pubsub-message-publish_time-as-datetime branch July 17, 2018 20:14
parthea pushed a commit that referenced this pull request Mar 2, 2026
Rather than a 'google.protobuf.timestamp_pb2.Timestamp' instance.

Closes #5598.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL