samling 0.13.1

App for managing apparel collections
Documentation
1
2
3
4
5
6
7
8
9
10
11
use chrono::{Datelike, NaiveDate};

pub(crate) trait YearWeek {
    fn year_week(&self) -> String;
}

impl YearWeek for NaiveDate {
    fn year_week(&self) -> String {
        format!("{}W{}", self.year(), self.iso_week().week())
    }
}