From 91fac7980777185be9be3f2c461c0b85d247b793 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Sat, 13 Jul 2019 10:01:55 -0500 Subject: [PATCH 1/3] Fix README specification for number_from_monday() --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9d4d7b..6401210 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ assert_eq!((dt.year(), dt.month(), dt.day()), (2014, 11, 28)); assert_eq!((dt.month0(), dt.day0()), (10, 27)); // for unfortunate souls assert_eq!((dt.hour(), dt.minute(), dt.second()), (21, 45, 59)); assert_eq!(dt.weekday(), Weekday::Fri); -assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sat=7 +assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sun=7 assert_eq!(dt.ordinal(), 332); // the day of year assert_eq!(dt.num_days_from_ce(), 735565); // the number of days from and including Jan 1, 1 From c80878ce4e96649129e7de7ee97bd10bfefa63fc Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Thu, 18 Jul 2019 07:37:37 -0500 Subject: [PATCH 2/3] Change src/lib rather than readme directly --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6401210..f9d4d7b 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ assert_eq!((dt.year(), dt.month(), dt.day()), (2014, 11, 28)); assert_eq!((dt.month0(), dt.day0()), (10, 27)); // for unfortunate souls assert_eq!((dt.hour(), dt.minute(), dt.second()), (21, 45, 59)); assert_eq!(dt.weekday(), Weekday::Fri); -assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sun=7 +assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sat=7 assert_eq!(dt.ordinal(), 332); // the day of year assert_eq!(dt.num_days_from_ce(), 735565); // the number of days from and including Jan 1, 1 diff --git a/src/lib.rs b/src/lib.rs index 9c085e0..0df5cdd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -173,7 +173,7 @@ //! assert_eq!((dt.month0(), dt.day0()), (10, 27)); // for unfortunate souls //! assert_eq!((dt.hour(), dt.minute(), dt.second()), (21, 45, 59)); //! assert_eq!(dt.weekday(), Weekday::Fri); -//! assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sat=7 +//! assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sun=7 //! assert_eq!(dt.ordinal(), 332); // the day of year //! assert_eq!(dt.num_days_from_ce(), 735565); // the number of days from and including Jan 1, 1 //! From 63920fe65bd58ccf89818b21a18a8891540a07b4 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Thu, 18 Jul 2019 08:02:45 -0500 Subject: [PATCH 3/3] Put change back into README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9d4d7b..6401210 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ assert_eq!((dt.year(), dt.month(), dt.day()), (2014, 11, 28)); assert_eq!((dt.month0(), dt.day0()), (10, 27)); // for unfortunate souls assert_eq!((dt.hour(), dt.minute(), dt.second()), (21, 45, 59)); assert_eq!(dt.weekday(), Weekday::Fri); -assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sat=7 +assert_eq!(dt.weekday().number_from_monday(), 5); // Mon=1, ..., Sun=7 assert_eq!(dt.ordinal(), 332); // the day of year assert_eq!(dt.num_days_from_ce(), 735565); // the number of days from and including Jan 1, 1