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/05 07:37:57 UTC

[07/22] libcloud git commit: Added comment to _from_utc_timestamp method. Closes #880

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/0a0f1e0c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/0a0f1e0c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/0a0f1e0c

Branch: refs/heads/trunk
Commit: 0a0f1e0cc6f286055c2c8b57a7e5cdd358194889
Parents: 33c83a9
Author: lpkearns <lo...@gmail.com>
Authored: Sat Oct 1 00:16:22 2016 -0700
Committer: Anthony Shaw <an...@apache.org>
Committed: Wed Oct 5 18:37:01 2016 +1100

----------------------------------------------------------------------
 libcloud/common/google.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/0a0f1e0c/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)