diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-15 01:02:53 +0200 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-15 01:02:53 +0200 |
commit | 3bd8555cbed070b5f09fed26a219ce7f40c342e3 (patch) | |
tree | 1b3eaa9fe2bef971b9ad43ee7fa87f55185d1d01 /src/yearinfo.rs | |
parent | 845aef4a98bd142fd3b89288e0d8e0288140e8db (diff) | |
download | rust_rrule-3bd8555cbed070b5f09fed26a219ce7f40c342e3.zip |
it actually works!!!
Diffstat (limited to 'src/yearinfo.rs')
-rw-r--r-- | src/yearinfo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yearinfo.rs b/src/yearinfo.rs index c41f66c..37af64d 100644 --- a/src/yearinfo.rs +++ b/src/yearinfo.rs @@ -64,7 +64,7 @@ pub fn to_ordinal(date: &DateTime<Utc>) -> isize { (date.timestamp() / 60 / 60 / 24) as isize } -fn get_weekday_val(wk: &Weekday) -> usize { +pub fn get_weekday_val(wk: &Weekday) -> usize { match wk { Weekday::Mon => 0, Weekday::Tue => 1, |