Trait ddate::DiscordianDate
[−]
[src]
pub trait DiscordianDate: Datelike { fn to_poee(&self) -> String { ... } }
Extends chrono's
Datelike
to
display Discordian calendar dates.
Provided Methods
fn to_poee(&self) -> String
Returns a Discordian calendar date string.
Examples
use chrono::NaiveDate; use ddate::DiscordianDate; let ddate = NaiveDate::from_ymd(2017, 11, 4).to_poee(); assert_eq!("Pungenday, the 16th day of The Aftermath in the YOLD 3183", ddate);
Implementors
impl<T: Datelike> DiscordianDate for T