PHP Classes

quarter wise, dates,: Braking the dates in quaters and calculating the number of days

Recommend this page to a friend!
  All requests RSS feed  >  quarter wise, dates,  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

quarter wise, dates,

Edit

Picture of muabshir by muabshir - 7 years ago (2017-01-17)

Braking the dates in quaters and calculating the number of days

This request is clear and relevant.
This request is not clear or is not relevant.

+1

Start Date--------End Date ------- Loc 2007-06-15--------2009-01-16-------0283 2009-01-16--------2012-01-27-------0306 2012-01-27--------2013-01-01-------0319 2013-01-01--------2013-01-23-------0319 2013-01-23--------2014-12-24-------0736 2014-12-24--------2016-03-11-------0302 2016-03-11--------2016-06-01-------0304 2016-06-01--------2016-11-11-------0304 2016-11-11--------2016-12-31-------5165

I want a class or function which can analyze the above array and brake the data in quarters and return the Loc id against each quarter of the year e.g I use only 2016 data

2016-03-11--------2016-06-01-------0304 2016-06-01--------2016-11-11-------0304 2016-11-11--------2016-12-31-------5165

in this case Q1 of 2016 is missing so the start date of Q1 will be consider 2016-01-01 and loc is 302 from the above array the selection of Loc is based on max number of days spend by the person

Q2 from Apr to Jun Loc ------304 Q3 from Jul to Sep Loc ------304 Q4 from Oct to Dec Loc ------304

looking forward the prompt and quick response from the members

Ask clarification

1 Recommendation

PHP handy date time handler: Compute dates and times of recurring events

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse package author package author Reputation 6550 - 7 years ago (2017-07-16) Comment

you can use the different methods of this class to handle date difference or event recurrence each quarter but for what you call loc we need more clarification to adapt our different class or suggest anything else...

  • 1 Comment
  • 1. Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse package author package author - 7 years ago (2017-07-20) Reply

    You may use this another package when it will be approved https://www.phpclasses.org/package/10402.html for compute-the-precise-number-of-days-between-to-date combined with my package above.


Recommend package
: 
: