Skip to content

Commit 1f18211

Browse files
committed
more doc
1 parent c7f497a commit 1f18211

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ Example using python built in module::
120120

121121
About second repeats
122122
=====================
123-
Croniter is able to do second repetition crontabs form::
123+
Croniter is able to do second repetition crontabs form and by default seconds are the 6th field::
124124

125-
>>> croniter('* * * * * 1', local_date).get_next(datetime)
126125
>>> base = datetime(2012, 4, 6, 13, 26, 10)
127126
>>> itr = croniter('* * * * * 15,25', base)
128127
>>> itr.get_next(datetime) # 4/6 13:26:15
@@ -133,9 +132,9 @@ You can also note that this expression will repeat every second from the start d
133132

134133
>>> croniter('* * * * * *', local_date).get_next(datetime)
135134

136-
You can also use seconds as first slot::
135+
You can also use seconds as first field::
137136

138-
>>> croniter('* * * * * *', local_date, second_at_beginning=True).get_next(datetime)
137+
>>> itr = croniter('15,25 * * * * *', base, second_at_beginning=True)
139138

140139

141140
Support for start_time shifts

0 commit comments

Comments
 (0)