From afade408aa9ab82a839de3bbdd8290bd787d2b38 Mon Sep 17 00:00:00 2001 From: salfaris Date: Mon, 12 Oct 2020 22:36:40 +0100 Subject: [PATCH] added Date Elapsed app --- Projects/1-Beginner/Date-Elapsed-App.md | 26 +++++++++++++++++++++++++ README.md | 1 + 2 files changed, 27 insertions(+) create mode 100644 Projects/1-Beginner/Date-Elapsed-App.md diff --git a/Projects/1-Beginner/Date-Elapsed-App.md b/Projects/1-Beginner/Date-Elapsed-App.md new file mode 100644 index 00000000..a6cb0af9 --- /dev/null +++ b/Projects/1-Beginner/Date-Elapsed-App.md @@ -0,0 +1,26 @@ +# Date Elapsed + +**Tier:** 1-Beginner + +A common question that people would ask is how many days have elapsed since a certain date. Despite this question being straightforward, the calculation is actually quite tricky; and doing it mentally or even on paper is time-draining. + +## User Stories + +- [ ] User can choose a start date +- [ ] User can choose an end date + +## Bonus features + +- [ ] User can optionally choose if they want the first (or last) date to be counted as a day itself - in some calculations, we surprisingly want this feature. +- [ ] User can opt to include/exclude weekends. +- [ ] User can write the program as a GUI or CLI app. + +## Useful links and resources + +- [How to work with dates and time with Python](https://opensource.com/article/17/5/understanding-datetime-python-primer) + +## Example projects + +- [timeanddate.com](https://www.timeanddate.com/date/duration.html) +- [theCalculatorsite](https://www.thecalculatorsite.com/time/days-between-dates.php) +- [Python implementation example (with code)](https://github.com/salfaris/utilities/blob/main/date-since.py) \ No newline at end of file diff --git a/README.md b/README.md index f6557617..44d23a70 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ required to complete them. | [Color Cycle](./Projects/1-Beginner/Color-Cycle-App.md) | Cycle a color value through incremental changes | 1-Beginner | | [Countdown Timer](./Projects/1-Beginner/Countdown-Timer-App.md) | Event Countdown timer | 1-Beginner | | [CSV2JSON App](./Projects/1-Beginner/CSV2JSON-App.md) | CSV to JSON converter | 1-Beginner | +| [Date Elapsed](./Projects/1-Beginner/Date-Elapsed-App.md) | Calculate date difference | 1-Beginner | | [Dollars to Cents](./Projects/1-Beginner/Dollars-To-Cents-App.md) | Convert dollars to cents | 1-Beginner | | [Dynamic CSS Variables](./Projects/1-Beginner/Dynamic-CSSVar-app.md) | Dynamically change CSS variable settings | 1-Beginner | | [First DB App](./Projects/1-Beginner/First-DB-App.md) | Your first Database app! | 1-Beginner |