DateProvider

object DateProvider

The DateProvider Instance FhirEngine uses for date/time related operations.

Functions

invoke
Link copied to clipboard
operator fun invoke(instant: Instant? = null): Clock
  • Returns the cached clock instance. If an Instant is passed , subsequent calls to the function will return a clock fixed to instant. To reset to a normal (unfixed) clock use resetClock.

resetClock
Link copied to clipboard
fun resetClock(): <ERROR CLASS>

Properties

clock
Link copied to clipboard
lateinit var clock: Clock

Sources

androidJvm source
Link copied to clipboard