summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorMathijs Mortimer <mathijs.mortimer@rabobank.com>2022-01-06 11:38:02 +0100
committerMathijs Mortimer <mathijs.mortimer@rabobank.com>2022-01-06 11:38:02 +0100
commite584f126566c0b3cbf864b1b01fa32237313a0f1 (patch)
treeb5c52efe43e0572108025ad5b7cb3733ab181d19 /README.rst
parenteac0b879cc761e63ebacbbd1df538085212ae732 (diff)
downloadcroniter-e584f126566c0b3cbf864b1b01fa32237313a0f1.tar.gz
Added DST example using only the builtin datetime module.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index c1a4165..8181f15 100644
--- a/README.rst
+++ b/README.rst
@@ -112,6 +112,11 @@ Example using python_dateutil::
>>> local_date = datetime(2017, 3, 26, tzinfo=tz)
>>> val = croniter('0 0 * * *', local_date).get_next(datetime)
+Example using python built in module::
+
+ >>> from datetime import datetime, timezone
+ >>> local_date = datetime(2017, 3, 26, tzinfo=timezone.utc)
+ >>> val = croniter('0 0 * * *', local_date).get_next(datetime)
About second repeats
=====================