Trait clokwerk::timeprovider::TimeProvider [−][src]
A trait for providing custom time providers. TimeProvider
s are used to
specify where the source of DateTimes used by the scheduler. For most
purposes, the default ChronoTimeProvider
is sufficient; the main
use case for custom TimeProvider
s is for writing tests.
Required methods
fn now<Tz>(tz: &Tz) -> DateTime<Tz> where
Tz: TimeZone + Sync + Send,
[src]
Tz: TimeZone + Sync + Send,
Returns the current time, according to the TimeProvider
Implementors
impl TimeProvider for ChronoTimeProvider
[src]
impl TimeProvider for ChronoTimeProvider
[src]