FishKiller
IS-IT--Management
StopWatch – Can anyone lend a hand with this problem?
Task: Create a timer type value which will indicate total elapsed time with certain fixed exclusions and one or more additional exclusions for Holidays. The timer needs to be smart enough to automatically advance the time if the time falls outside the allowed time.
ENVIROMENT: I have one SQL database with two tables in it. The name of the database is “PROID”. The name of the two fields are “APPTMSTR” and “WSSSTATS”. The two dates to be used by the timer are coming from the following fields“APPTSDATE” AND “WSSSTOPDATE”
FIXED EXCLUSIONS:
MONDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
TUESDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
WEDNESDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
THURSDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
FRIDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
SATURDAY 12:00AM ~ 11:59PM
SUNDAY 12:00AM ~ 11:59PM
DYNAMIC EXCLUSIONS:
HOLIDAY1 YYYY/MM/DD HH:MM 12:00AM ~ 11:59PM
EXAMPLE:
APPTMSTR.APPTSDATE = 11DEC03 6:30PM
WSSSTATS.WSSSTOPDATE = 22DEC03 5:30PM
TIMER = 76.5 HOURS
Task: Create a timer type value which will indicate total elapsed time with certain fixed exclusions and one or more additional exclusions for Holidays. The timer needs to be smart enough to automatically advance the time if the time falls outside the allowed time.
ENVIROMENT: I have one SQL database with two tables in it. The name of the database is “PROID”. The name of the two fields are “APPTMSTR” and “WSSSTATS”. The two dates to be used by the timer are coming from the following fields“APPTSDATE” AND “WSSSTOPDATE”
FIXED EXCLUSIONS:
MONDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
TUESDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
WEDNESDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
THURSDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
FRIDAY 12:00AM – 6:59AM & 6:01PM – 11:59PM (7:00AM ~ 6:00 PM – working timer hours)
SATURDAY 12:00AM ~ 11:59PM
SUNDAY 12:00AM ~ 11:59PM
DYNAMIC EXCLUSIONS:
HOLIDAY1 YYYY/MM/DD HH:MM 12:00AM ~ 11:59PM
EXAMPLE:
APPTMSTR.APPTSDATE = 11DEC03 6:30PM
WSSSTATS.WSSSTOPDATE = 22DEC03 5:30PM
TIMER = 76.5 HOURS