Type Alias TranquilityMoment

Source
pub type TranquilityMoment = CalendarMoment<Tranquility>;
Expand description

Represents a date and time in the Tranquility Calendar

Aliased Type§

pub struct TranquilityMoment { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Display for TranquilityMoment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PresetDisplay for TranquilityMoment

Source§

fn long_date(&self) -> String

Format a date in a calendar-specific long format
Source§

fn short_date(&self) -> String

Format a date in a calendar-specific short format
Source§

fn supported_display_lang(lang: Language) -> bool

Checks if language is supported
Source§

fn preset_str(&self, lang: Language, preset: PresetFormat<'_>) -> String

Format a date in any PresetFormat