summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Mencl <vladimir.mencl@reannz.co.nz>2021-06-09 22:18:53 +1200
committerVlad Mencl <vladimir.mencl@reannz.co.nz>2021-06-09 22:18:53 +1200
commitf72e286fca31750c680f23b7ca0dc3eb8af31449 (patch)
tree7d35c46f36c2efda7ea17c191e158de12c3281ea
parent4d2dcce7edffcacabd1048d35f649c610b934c52 (diff)
downloadpysaml2-f72e286fca31750c680f23b7ca0dc3eb8af31449.tar.gz
fix: saml2/time_util: get before/after docstrings right
Align the docstrings with what the functions actually implement.
-rw-r--r--src/saml2/time_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saml2/time_util.py b/src/saml2/time_util.py
index 332d84bb..9eb4cec0 100644
--- a/src/saml2/time_util.py
+++ b/src/saml2/time_util.py
@@ -269,7 +269,7 @@ def utc_now():
def before(point):
- """ True if point datetime specification is before now.
+ """ True if current time is before point datetime specification.
NOTE: If point is specified it is supposed to be in local time.
Not UTC/GMT !! This is because that is what gmtime() expects.
@@ -286,7 +286,7 @@ def before(point):
def after(point):
- """ True if point datetime specification is equal or after now """
+ """ True if current time is after or equal to point datetime specification."""
if not point:
return True
else: