diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2013-08-23 08:38:50 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2013-10-25 09:32:39 +0100 |
commit | 037e3ef6ae849451717542d2fbc31011d4a44b18 (patch) | |
tree | 093a573cc5e1d4cd8bd09c43faa50329220efa66 /subvertpy | |
parent | 877ddc74d7d32666d9a4427603924a7e5fbb270f (diff) |
Clarify microseconds for timestamp
Patch by Martin Panter.
Diffstat (limited to 'subvertpy')
-rw-r--r-- | subvertpy/properties.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subvertpy/properties.py b/subvertpy/properties.py index 0478523d..7fca7884 100644 --- a/subvertpy/properties.py +++ b/subvertpy/properties.py @@ -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" |