ako 0.0.3

Ako is a Rust crate that offers a practical and human-friendly approach to creating, manipulating, formatting and converting dates, times and timestamps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
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);
}