What I need help with is (if statements) how to determine which method to use (to run a process) based on specified weekday time. Dates are irrelevant.
How do I use specified time to decide the method to use?
I do not need help with the process or even the methods. All I need help with is if statements to determine which method to use.
Requirements
Method AllDocuments
If the time is 8 AM to 9 AM AllDocuments method is used
If the time is 11 AM - 11:05 AM AllDocuments method is used
If the time is 1 PM - 1:05 PM AllDocuments method is used
If the time is 3 PM - 3:05 PM AllDocuments method is used
If the time is 5 PM - 5:05 PM AllDocuments method is used
Method GetDocsInLast60Minutes
If the time is 9 AM to 5 PM GetDocsInLast60Minutes method is used
How do I use specified time to decide the method to use?
I do not need help with the process or even the methods. All I need help with is if statements to determine which method to use.
Requirements
Method AllDocuments
If the time is 8 AM to 9 AM AllDocuments method is used
If the time is 11 AM - 11:05 AM AllDocuments method is used
If the time is 1 PM - 1:05 PM AllDocuments method is used
If the time is 3 PM - 3:05 PM AllDocuments method is used
If the time is 5 PM - 5:05 PM AllDocuments method is used
Method GetDocsInLast60Minutes
If the time is 9 AM to 5 PM GetDocsInLast60Minutes method is used