TimeProvider

fun fun interface TimeProvider<T : Temporal>

Interface providing access to current time via now method.

This class is needed in order to test methods that require usage of current time stamp.

Functions

now
Link copied to clipboard
abstract fun now(): T
Returns value representing current time stamp as defined in the implementation of T.

Inheritors

InstantTimeProvider
Link copied to clipboard

Sources

Katlib source
Link copied to clipboard