You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="platform-hinted " data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content" data-active="" data-togglable=":/commonMain"><divclass="symbol monospace"><spanclass="token keyword">fun </span><ahref="parse-cron.html"><spanclass="token function">parseCron</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">expression<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../index.html">PulseSchedule</a></div><pclass="paragraph">Parse a cron <ahref="parse-cron.html">expression</a> into a <ahref="../index.html">PulseSchedule</a>.</p><pclass="paragraph">This function supports the standard cron specification, which includes:</p><ul><li><pclass="paragraph">Five fields specifying the minute, hour, day of month, month, and day of week.</p></li><li><pclass="paragraph"><codeclass="lang-kotlin">*</code> denoting a wildcard value.</p></li><li><pclass="paragraph">List of values using commas, like <codeclass="lang-kotlin">1,5,7</code>.</p></li><li><pclass="paragraph">Ranges of values, like <codeclass="lang-kotlin">5-10</code>.</p></li><li><pclass="paragraph">Mixed range and list values, like <codeclass="lang-kotlin">5-10,20-25</code>.</p></li><li><pclass="paragraph">The integers 0-59 for the minute field.</p></li><li><pclass="paragraph">The integers 0-23 for the hour field.</p></li><li><pclass="paragraph">The integers 1-31 for the day of week field.</p></li><li><pclass="paragraph">The integers 1-12 for the month field.</p></li><li><pclass="paragraph">The integers 0-6 or strings SUN-SAT for the day of week field.</p></li></ul><pclass="paragraph">Functionality not articulated above is considered non-standard and is therefore explicitly not supported.</p><h4class="">Throws</h4><divclass="table"><divclass="table-row" data-filterable-current=":/commonMain" data-filterable-set=":/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html"><span>Illegal</span><wbr></wbr><span>Argument</span><wbr></wbr><span><span>Exception</span></span></a></div></span></div><div><divclass="title"><pclass="paragraph">Malformed cron expression or unsupported cron feature.</p></div></div></div></div></div></div></div>
0 commit comments