Open shah-smit opened 4 years ago
If it is last working day, then cut of 2030hrs.
also we dont want to calculate if last business day or not every day as such, lets use env variable to store,
isLastWorkingDayToday={false,true} date_last_calculated=31102020
if does not exist, then calculate if date_last_calculated is not today, then calculate else use the {false,true} to determine further.
https://robm.me.uk/ruby/2014/01/25/pstore.html
may help with sotring data rather using env var.
https://stackoverflow.com/questions/15208890/get-the-day-of-the-last-friday-of-each-month
If it is last working day, then cut of 2030hrs.
also we dont want to calculate if last business day or not every day as such, lets use env variable to store,
isLastWorkingDayToday={false,true} date_last_calculated=31102020
if does not exist, then calculate if date_last_calculated is not today, then calculate else use the {false,true} to determine further.