<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="create-simple-scheduler.html"><spanclass="token function">createSimpleScheduler</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">incoming<spanclass="token operator">: </span><ahref="index.html#-1448720714%2FClasslikes%2F788909594">KrontabTemplate</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="-kron-scheduler/index.html">KronScheduler</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/krontab/blob/master//src/commonMain/kotlin/dev/inmo/krontab/StringParser.kt#L14">source</a>)</span></span></div><pclass="paragraph">Parse <ahref="create-simple-scheduler.html">incoming</a> string and adapt according to next format: "* * * * *" where order of things:</p><ul><li><pclass="paragraph"><strong>seconds</strong></p></li><li><pclass="paragraph"><strong>minutes</strong></p></li><li><pclass="paragraph"><strong>hours</strong></p></li><li><pclass="paragraph"><strong>dayOfMonth</strong></p></li><li><pclass="paragraph"><strong>month</strong></p></li><li><pclass="paragraph"><strong>year</strong> (optional)</p></li><li><pclass="paragraph"><strong>offset</strong> (optional) (can be placed anywhere after month) (must be marked with <codeclass="lang-kotlin">o</code> at the end, for example: 60o == +01:00)</p></li><li><pclass="paragraph"><strong>dayOfWeek</strong> (optional) (can be placed anywhere after month)</p></li><li><pclass="paragraph"><strong>milliseconds</strong> (optional) (can be placed anywhere after month) (must be marked with <codeclass="lang-kotlin">ms</code> at the end, for example: 500ms; 100-200ms)</p></li></ul><pclass="paragraph">And each one (except of offsets) have next format:</p><pclass="paragraph"><codeclass="lang-kotlin">{number}[,{number},...]</code> or <codeclass="lang-kotlin">*</code></p><pclass="paragraph">and {number} here is one of</p><ul><li><pclass="paragraph">{int}-{int}</p></li><li><pclass="paragraph">{int}/{int}</p></li><li><pclass="paragraph">*/{int}</p></li><li><pclass="paragraph">{int}</p></li><li><pclass="paragraph">F</p></li><li><pclass="paragraph">L</p></li></ul><pclass="paragraph">Week days must be marked with <codeclass="lang-kotlin">w</code> at the end, and starts with 0 which means Sunday. For example, 0w == Sunday. With weeks you can use syntax like with any number like seconds, for example: 0-2w means Sunday-Tuesday</p><pclass="paragraph">Additional info about ranges can be found in follow accordance:</p><ul><li><pclass="paragraph">Seconds ranges can be found in <spandata-unresolved-link="dev.inmo.krontab.internal//secondsRange/#/PointingToDeclaration/">secondsRange</span></p></li><li><pclass="paragraph">Minutes ranges can be found in <spandata-unresolved-link="dev.inmo.krontab.internal//minutesRange/#/PointingToDeclaration/">minutesRange</span></p></li><li><pclass="paragraph">Hours ranges can be found in <spandata-unresolved-link="dev.inmo.krontab.internal//hoursRange/#/PointingToDeclaration/">hoursRange</span></p></li><li><pclass="paragraph">Days of month ranges can be found in <spandata-unresolved-link="dev.inmo.krontab.internal//dayOfMonthRange/#/PointingToDeclaration/">dayOfMonthRange</span></p></li><li><pclass="paragraph">Months ranges can be found in <spandata-unresolved-link="dev.inmo.krontab.internal//monthRange/#/PointingToDeclaration/">monthRange</span></p></li><li><pclass="paragraph">Years ranges can be found in <spandata-unresolved-link="dev.inmo.krontab.internal//yearRange/#/PointingToDeclaration/">yearRange</span> (in fact - any <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)</p></li><li><pclass="paragraph">WeekDay (timezone) ranges can be found in <