[go: up one dir, main page]

Type Definition gix::config::tree::keys::Time

source ·
pub type Time = Any<Time>;
Expand description

A key which represents a date.

Implementations§

source§

impl Time

source

pub const fn new_time(name: &'static str, section: &'static dyn Section) -> Self

Create a new instance.

source

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.