Skip to content

Commit

Permalink
Merge pull request #8 from thiezn/master
Browse files Browse the repository at this point in the history
Added DST example using only the builtin datetime module.
  • Loading branch information
kiorky committed Jan 14, 2022
2 parents 4b4ab52 + e584f12 commit 6eafebf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====================
Expand Down

0 comments on commit 6eafebf

Please sign in to comment.