KronSchedulerTz

interface KronSchedulerTz : KronScheduler

This interface extending KronScheduler to use DateTimeTz with taking into account offset of incoming time for next operation.

See also

dev.inmo.krontab.internal.CronDateTimeScheduler

Functions

next
Link copied to clipboard
common
open suspend override fun next(relatively: DateTime): DateTime?
abstract suspend fun next(relatively: DateTimeTz): DateTimeTz?

Inheritors

CollectionKronScheduler
Link copied to clipboard

Extensions

asTzFlow
Link copied to clipboard
common
@FlowPreview
fun KronSchedulerTz.asTzFlow(): Flow<DateTimeTz>

This Flow will trigger emitting each near time which will be returned from this with attention to time zones

nextOrNowWithOffset
Link copied to clipboard
common
suspend fun KronSchedulerTz.nextOrNowWithOffset(): DateTimeTz
nextOrRelative
Link copied to clipboard
common
suspend fun KronSchedulerTz.nextOrRelative(relatively: DateTimeTz): DateTimeTz

Sources

common source
Link copied to clipboard