aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-11-28 17:35:33 +0100
committermetamuffin <metamuffin@disroot.org>2022-11-28 17:35:33 +0100
commitc8f604e26d2b3e987c23385439454233c42af440 (patch)
tree45230b5b602ea0ee6693d0b3a81e11d2ae0751da
parentfdc78eca1a02c451a69da0573f15027a302ec54f (diff)
downloadkarlender-c8f604e26d2b3e987c23385439454233c42af440.tar
karlender-c8f604e26d2b3e987c23385439454233c42af440.tar.bz2
karlender-c8f604e26d2b3e987c23385439454233c42af440.tar.zst
upgrade deps in comments too
-rw-r--r--karld/src/condition.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/karld/src/condition.rs b/karld/src/condition.rs
index 2b0d2e3..a731502 100644
--- a/karld/src/condition.rs
+++ b/karld/src/condition.rs
@@ -149,26 +149,28 @@ impl ConditionFind for Condition {
))
}
}
- Property::Weekofmonth => todo!(),
+ Property::Weekofmonth => {
+ todo!()
+ }
Property::Dayofyear => {
todo!()
}
Property::Dayofmonth => {
// let mut target = NaiveDateTime::new(
- // NaiveDate::from_ymd(from.year(), from.month(), value as u32),
- // NaiveTime::from_hms(0, 0, 0),
+ // NaiveDate::from_ymd_opt(from.year(), from.month(), value as u32).unwrap(),
+ // NaiveTime::from_hms_opt(0, 0, 0).unwrap(),
// );
// if edge == End {
// target += Duration::days(1)
// }
// fn increment_month(d: NaiveDateTime) -> NaiveDateTime {
// NaiveDateTime::new(
- // NaiveDate::from_ymd(
+ // NaiveDate::from_ymd_opt(
// d.year() + (d.month() as i32 / 12),
// (d.month() + 1) % 12,
// d.day(),
- // ),
- // NaiveTime::from_hms(d.hour(), d.minute(), d.second()),
+ // ).unwrap(),
+ // NaiveTime::from_hms_opt(d.hour(), d.minute(), d.second()).unwrap(),
// )
// }
// let dir_off = match dir {