<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":dokkaHtml/commonMain"><divclass="symbol monospace"><divclass="block"><divclass="block"><spanclass="token annotation builtin">@</span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-inline/index.html"><spanclass="token annotation builtin">JvmInline</span></a></div></div><spanclass="token keyword">value </span><spanclass="token keyword">class </span><ahref="index.html">KrontabConfig</a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter "><spanclass="token keyword">val </span>template<spanclass="token operator">: </span><ahref="../index.html#-1448720714%2FClasslikes%2F788909594">KrontabTemplate</a></span></span><spanclass="token punctuation">)</span><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/krontab/blob/master//src/commonMain/kotlin/dev/inmo/krontab/KrontabConfig.kt#L81">source</a>)</span></span></div><pclass="paragraph">This value class contains <ahref="../index.html#-1448720714%2FClasslikes%2F788909594">KrontabTemplate</a></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 secondsRange</p></li><li><pclass="paragraph">Minutes ranges can be found in minutesRange</p></li><li><pclass="paragraph">Hours ranges can be found in hoursRange</p></li><li><pclass="paragraph">Days of month ranges can be found in dayOfMonthRange</p></li><li><pclass="paragraph">Months ranges can be found in monthRange</p></li><li><pclass="paragraph">Years ranges can be found in yearRange (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 dayOfWeekRange</p></li><li><pclass="paragraph">Milliseconds ranges can be found in millisecondsRange</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="paragraph">"0/15 30
<divclass="copy-popup-wrapper "><spanclass="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<divclass="title">
<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="scheduler.html"><spanclass="token function">scheduler</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../-kron-scheduler/index.html">KronScheduler</a></div><divclass="brief "><pclass="paragraph">Creates <strong>new</strong><ahref="../-kron-scheduler/index.html">KronScheduler</a> based on a <ahref="template.html">template</a></p></div><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="scheduler.html"><spanclass="token function">scheduler</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">defaultOffset<spanclass="token operator">: </span><ahref="../../dev.inmo.krontab.utils/index.html#1215844957%2FClasslikes%2F788909594">Minutes</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../-kron-scheduler-tz/index.html">KronSchedulerTz</a></div><divclass="brief "><pclass="paragraph">Creates base <ahref="../-kron-scheduler/index.html">KronScheduler</a> using <ahref="scheduler.html">scheduler</a> function. In case when returned <ahref="../-kron-scheduler/index.html">KronScheduler</a> is <ahref="../-kron-scheduler-tz/index.html">KronSchedulerTz</a>, it will be returned as is. Otherwise, will be created new <spandata-unresolved-link="dev.inmo.krontab.internal/CronDateTimeSchedulerTz///PointingToDeclaration/">CronDateTimeSchedulerTz</span> with <ahref="scheduler.html">defaultOffset</a> as offset</p></div></div></div>