<divclass="content sourceset-depenent-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>incoming<spanclass="token operator">: </span><ahref="index.html#-1448720714%2FClasslikes%2F788909594">KrontabTemplate</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="-kron-scheduler/index.html">KronScheduler</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></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">seconds</p></li><li><pclass="paragraph">minutes</p></li><li><pclass="paragraph">hours</p></li><li><pclass="paragraph">dayOfMonth</p></li><li><pclass="paragraph">month</p></li><li><pclass="paragraph">(optional) year</p></li><li><pclass="paragraph">(optional) (can be placed anywhere after month) (must be marked with <codeclass="lang-kotlin">o</code> at the end, for example: 60o == +01:00) offset</p></li><li><pclass="paragraph">(optional) (can be placed anywhere after month) dayOfWeek</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 <spandata-unresolved-link="dev.inmo.krontab.internal//dayOfWeekRange/#/PointingToDeclaration/">dayOfWeekRange</span></p></li></ul><pclass="paragraph">Examples:</p><ul><li><pclass="paragraph">"0/5 * * * *" for every five seconds triggering</p></li><li><pclass="paragraph">"0/5,L * * * *" for every five seconds triggering and on 59 second</p></li><li><pclass="paragraph">"0/15 30 * * *" for every 15th seconds in a half of each hour</p></li><li><pclass="parag