wimc 0.1.0

Wizards in Memory Cache
1
2
3
4
5
6
7
8
use wbdl::Date;

pub fn find_date(vec: &mut Vec<String>) -> Option<Date> {
    Date::try_from(vec.pop()?).ok()
}
pub fn is_due(date: &Date) -> bool {
    Date::now().map(|val| &val > date).unwrap_or_default()
}