use crate::PlainTime;
/// Types that can be viewed as a time on the clock.
pub trait AsTime {
/// Returns this interpreted as the time on a clock.
fn as_time(&self) -> PlainTime;
/// Returns this as a timestamp in seconds and nanoseconds since an
/// implementation-defined epoch.
fn as_timestamp(&self) -> (i64, u32);
}