summaryrefslogtreecommitdiffstats
path: root/software/python.page
diff options
context:
space:
mode:
Diffstat (limited to 'software/python.page')
-rw-r--r--software/python.page9
1 files changed, 9 insertions, 0 deletions
diff --git a/software/python.page b/software/python.page
index 0fc3c8d..7133013 100644
--- a/software/python.page
+++ b/software/python.page
@@ -226,3 +226,12 @@ and
# ... do some stuff ...
tr.print_diff()
+
+
+Canonical Timestamp
+--------------------
+
+As a terse one-liner (with `datetime` imported):
+
+ f"{datetime.datetime.utcnow().isoformat()[:-3]}Z"
+