Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Oct 6, 2022
1 parent 0fd4b32 commit f6c302e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -220,7 +220,7 @@ The expressions of Croner are very similar to the ones of Vixie Cron, with a few

* Croner allow you to pass a javascript Date object, or a ISO 8601 formatted string, as a pattern. The scheduled function will trigger at the specified date/time, and only once. If you use a timezone different from local, you should pass ISO 8601 local time in target location, and specify timezone using the options (2nd parameter).

* Croner allow to change how day-of-week and day-of-month is combined. By default croner (and Vixie cron) will trigger when day-of-month OR day-of-week conditions match In croner. As an example ```0 20 1 * MON``` will trigger on both the first of the month and on each monday. If you want to use AND (and in this example only trigger on mondays that also is 1st of the month) you can pass `{ legacyMode: false }`. See issue [#53](https://github.com/Hexagon/croner/issues/53) for more information.
* Croner allow to change how day-of-week and day-of-month is combined. By default croner (and Vixie cron) will trigger when day-of-month OR day-of-week conditions match. As an example ```0 20 1 * MON``` will trigger on the first of the month, as well as on each monday. If you want to use AND (and in this example only trigger on mondays that is also 1st of the month) you can pass `{ legacyMode: false }`. See issue [#53](https://github.com/Hexagon/croner/issues/53) for more information.

```javascript
// ┌──────────────── (optional) second (0 - 59)
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Expand Up @@ -357,7 +357,7 @@ <h4>Pattern</h4>
<p>Croner allow you to pass a javascript Date object, or a ISO 8601 formatted string, as a pattern. The scheduled function will trigger at the specified date/time, and only once. If you use a timezone different from local, you should pass ISO 8601 local time in target location, and specify timezone using the options (2nd parameter).</p>
</li>
<li>
<p>Croner allow to change how day-of-week and day-of-month is combined. By default croner (and Vixie cron) will trigger when day-of-month OR day-of-week conditions match In croner. As an example <code>0 20 1 * MON</code> will trigger on both the first of the month and on each monday. If you want to use AND (and in this example only trigger on mondays that also is 1st of the month) you can pass <code>{ legacyMode: false }</code>. See issue <a href="https://github.com/Hexagon/croner/issues/53">#53</a> for more information.</p>
<p>Croner allow to change how day-of-week and day-of-month is combined. By default croner (and Vixie cron) will trigger when day-of-month OR day-of-week conditions match. As an example <code>0 20 1 * MON</code> will trigger on the first of the month, as well as on each monday. If you want to use AND (and in this example only trigger on mondays that is also 1st of the month) you can pass <code>{ legacyMode: false }</code>. See issue <a href="https://github.com/Hexagon/croner/issues/53">#53</a> for more information.</p>
</li>
</ul>
<pre class="prettyprint source lang-javascript"><code>// ┌──────────────── (optional) second (0 - 59)
Expand Down

0 comments on commit f6c302e

Please sign in to comment.