From b41923c2fe0ac93fb6335ffc44f0bfe36ff1229b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Tr=C3=B6litzsch?= <Marc.Troelitzsch@gmail.com>
Date: Fri, 8 Mar 2019 20:19:18 +0100
Subject: [PATCH] Adding documentation to parse_timestamp() while I'm at it

---
 mwclient/util.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/mwclient/util.py b/mwclient/util.py
index a18205e..afa9954 100644
--- a/mwclient/util.py
+++ b/mwclient/util.py
@@ -3,6 +3,14 @@ import io
 
 
 def parse_timestamp(t):
+    """Parses a string containing a timestamp.
+
+    Args:
+        t (str): A string containing a timestamp.
+
+    Returns:
+        time.struct_time: A timestamp.
+    """
     if t is None or t == '0000-00-00T00:00:00Z':
         return time.struct_time((0, 0, 0, 0, 0, 0, 0, 0, 0))
     return time.strptime(t, '%Y-%m-%dT%H:%M:%SZ')
-- 
GitLab