chiark / gitweb /
common.get_wiki_timestamp() for posting timestamps to wiki log pages
[fdroidserver.git] / fdroidserver / common.py
index 06d40faab5b1a870b7e44f155a1cc33e0081a54f..439a999162a425a5570def696e4325e9cbb82c6b 100644 (file)
@@ -3010,3 +3010,8 @@ def get_examples_dir():
         examplesdir = prefix + '/examples'
 
     return examplesdir
+
+
+def get_wiki_timestamp():
+    """Return current time in the standard format for posting to the wiki"""
+    return time.strftime("%Y-%m-%d %H:%M:%SZ", time.gmtime())