Clarify microseconds for timestamp
authorJelmer Vernooij <jelmer@samba.org>
Fri, 23 Aug 2013 08:38:50 +0000 (08:38 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 25 Oct 2013 08:32:39 +0000 (09:32 +0100)
Patch by Martin Panter.

subvertpy/properties.py

index 0478523d75e98106a64069e242b644a900075c43..7fca7884dc10888d3649a808690af99f328ccc83 100644 (file)
@@ -42,7 +42,7 @@ def is_valid_property_name(prop):
 def time_to_cstring(timestamp):
     """Determine string representation of a time.
 
-    :param timestamp: Timestamp
+    :param timestamp: Number of microseconds since the start of 1970
     :return: string with date
     """
     tm_usec = timestamp % 1000000
@@ -55,7 +55,7 @@ def time_from_cstring(text):
     """Parse a time from a cstring.
     
     :param text: Parse text
-    :return: timestamp
+    :return: number of microseconds since the start of 1970
     """
     (basestr, usecstr) = text.split(".", 1)
     assert usecstr[-1] == "Z"