pub type Time = Any<Time>;Expand description
A key which represents a date.
Implementations§
source§impl Time
impl Time
sourcepub const fn new_time(name: &'static str, section: &'static dyn Section) -> Self
pub const fn new_time(name: &'static str, section: &'static dyn Section) -> Self
Create a new instance.
sourcepub fn try_into_time(
&self,
value: Cow<'_, BStr>,
now: Option<SystemTime>
) -> Result<Time, Error>
pub fn try_into_time( &self, value: Cow<'_, BStr>, now: Option<SystemTime> ) -> Result<Time, Error>
Convert the value into a date if possible, with now as reference time for relative dates.