I need to determine the current time of day and let the user know it's time to do a particular task. For example if the time is between an amount of hours (eg. Between 6am and 12pm) the user should do a certain task. If the time is after that (between 1pm and 6pm) the user should do another task and if the time is any time outside those times they should do something else.
I don't know enough about ruby to post an example of code I've worked on so far. All I know is how to determine what the current time is with t = Time.now and how to determine if the time is between certain hrs, what I don't know is how to put that in a method to determine if the hrs are between a given time to tell the user to perform the task.
Any help appreciated.