1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! Chain-time
//!
//! Utilities for working with time
#![warn(clippy::all)]
#![deny(missing_docs)]

pub mod era;
pub mod timeframe;
pub mod timeline;
pub mod units;

pub use era::{Epoch, EpochPosition, EpochSlotOffset, TimeEra};
pub use timeframe::{Slot, SlotDuration, TimeFrame};
pub use timeline::{TimeOffsetSeconds, Timeline};
pub use units::DurationSeconds;

#[cfg(any(test, feature = "property-test-api"))]
#[doc(hidden)]
pub mod testing;