diff options
author | Mathijs Mortimer <mathijs.mortimer@rabobank.com> | 2022-01-06 11:38:02 +0100 |
---|---|---|
committer | Mathijs Mortimer <mathijs.mortimer@rabobank.com> | 2022-01-06 11:38:02 +0100 |
commit | e584f126566c0b3cbf864b1b01fa32237313a0f1 (patch) | |
tree | b5c52efe43e0572108025ad5b7cb3733ab181d19 /README.rst | |
parent | eac0b879cc761e63ebacbbd1df538085212ae732 (diff) | |
download | croniter-e584f126566c0b3cbf864b1b01fa32237313a0f1.tar.gz |
Added DST example using only the builtin datetime module.
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 ===================== |