Skip to main content

Module time

Module time 

Source
Expand description

Time abstractions used by the transform core.

TimePoint is the trait that any timestamp type must implement. Timestamp is the default concrete type provided by this crate.

If you need a custom clock, implement TimePoint for your own Copy + Ord type and use Registry<YourTimeType>. With std, std::time::SystemTime already implements TimePoint, so Registry::<SystemTime> is ready to use.

Re-exports§

pub use error::TimeError;
pub use error::TimestampError;Deprecated
pub use timestamp::Timestamp;
pub use traits::TimePoint;

Modules§

error
timestamp
traits