You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/10/01 09:41:06 UTC
libcloud git commit: Added comment to _from_utc_timestamp method.
Closes #880
Repository: libcloud
Updated Branches:
refs/heads/trunk 2a1d55c2b -> c24e702c2
Added comment to _from_utc_timestamp method.
Closes #880
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/c24e702c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c24e702c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c24e702c
Branch: refs/heads/trunk
Commit: c24e702c263caabd5a83ff7eadb8facdd05c9d59
Parents: 2a1d55c
Author: lpkearns <lo...@gmail.com>
Authored: Sat Oct 1 00:16:22 2016 -0700
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Oct 1 19:40:51 2016 +1000
----------------------------------------------------------------------
libcloud/common/google.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/c24e702c/libcloud/common/google.py
----------------------------------------------------------------------
diff --git a/libcloud/common/google.py b/libcloud/common/google.py
index 725aaba..74bb528 100644
--- a/libcloud/common/google.py
+++ b/libcloud/common/google.py
@@ -120,6 +120,9 @@ def _utc_timestamp(datetime_obj):
def _from_utc_timestamp(timestamp):
+ """
+ Return datetime obj where date and time are pulled from timestamp string.
+ """
return datetime.datetime.strptime(timestamp, UTC_TIMESTAMP_FORMAT)