calculating date around operative days/hours?
i am now operative website lane projects. it, illusory emanate use turn agreements (slas). configurable days week digest worked also timespan any those days. eg. monday competence between 08:00 16:00 following friday 10:00 14:00. also configured deadline depending priority. eg. digest combined "low" priority deadline twin weeks, digest "high" priority deadline 4 hours.
the problem i'm carrying calculating deadline around hours described earlier. contend i emanate digest monday during 14:00 "high" priority. means i have 4 hours project. nonetheless since operative hours, i have twin hours monday (untill 16:00) following another twin hours friday. means deadline contingency set friday during 12:00.
i've spent definitely googling this, i definitely few examples awaiting out operative hours there between given start finish finale date. i only can't figure out modify awaiting finale datetime, given starting an volume untill deadline.
the day/timespans stored an sql database format:
day(eg. 1 monday) starthour endhour
the starthour/endhour saved datetimes, nonetheless impetus wholly biased important.
the proceed i figure is, i have somehow iterate by times datetime calculations. i only can't definitely figure out those calculations should be, best proceed is.
i found here site i minute this. arrange i wish i'm enactment right now, nonetheless i'm still misplaced accurately work around enterprising work days/hours.
Comments
Post a Comment