LXer: Calculate date and time ranges in Groovy
by LXer from LinuxQuestions.org on (#5NW0J)
Published at LXer:
Every so often, I need to do some calculations related to dates. A few days ago, a colleague asked me to set up a new project definition in our (open source, of course!) project management system. This project is to start on the 1st of August and finish on the 31st of December. The service to be provided is budgeted at 10 hours per week.So, yeah, I had to figure out how many weeks between 2021-08-01 and 2021-12-31 inclusive.This is the perfect sort of problem to solve with a tiny Groovy script.read more
Read More...
Every so often, I need to do some calculations related to dates. A few days ago, a colleague asked me to set up a new project definition in our (open source, of course!) project management system. This project is to start on the 1st of August and finish on the 31st of December. The service to be provided is budgeted at 10 hours per week.So, yeah, I had to figure out how many weeks between 2021-08-01 and 2021-12-31 inclusive.This is the perfect sort of problem to solve with a tiny Groovy script.read more
Read More...