millisecond 0.10.1

Format milliseconds into a human-readable and relative timestamp formats. This package has no-std dependency.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::prelude::Weekday;

/// The protocol for types which would convert to weekday. e.g. Duration and Time
pub trait WeekdayConversion {
    /// Returns the weekday for the given value
    fn weekday(&self) -> Weekday;

    /// Return the weekday in string for the given value
    fn weekday_str(&self) -> &'static str {
        self.weekday().to_str()
    }
}