Recreating the Time Range Checker in Ruby
In this guide you will learn how to Recreate the time range checker.
Guide Tasks
- Read Tutorial
- Complete the Exercise
Summary
Build out a method that can be successfully used for creating a time range checker.
Exercise Description
"Define a method that will recreate a time range checker and will return a true or false if time range is within or outside the desired time parameters."
Example Data
' before do
@beginning_of_day = Time.new(2017, 7, 31, 0, 0, 0)
@end_of_day = Time.new(2017, 7, 31, 23, 59, 59)'
Real World Usage
This exercise will help you in real world applications that are time based and help report to managers if a projects is done inside the timeline or outside the timeline.