Yes HolyGuacamole,
You are very correct.
Actually, in addition to this code, I want the one that would also be scheduled for every week day, say for example, at 6:30 pm of every week day, I want to receive an email with a file as an attachment to the mail which conveys the same interface traffic and node availability history for business hours (8:00am to 6:00pm) of that particular day.