The dating code

Posted by / 29-Feb-2020 19:25

The correct alghoritm is:if (year is not divisible by 4) then (it is a common year)else if (year is not divisible by 100) then (it is a leap year)else if (year is not divisible by 400) then (it is a common year)else (it is a leap year)So the code should look like this:if($year%4 == 0 && $year0 !

= 0) elseif([email protected] == 0) else While this will work for the majority of years it will not work on years that are multiples of 100 but not multiples of 400 i.e.(2100).

Monday-Friday, excluding holidays) between any two given dates.

I couldn't find a simple way to do that in PHP, so I threw this together.

It replicates the functionality of Open Office's NETWORKDAYS function - you give it a start date, an end date, and an array of any holidays you want skipped, and it'll tell you the number of business days (inclusive of the start and end days! I've tested it pretty strenuously but date arithmetic is complicated and there's always the possibility I missed something, so please feel free to check my math.

The function could certainly be made much more powerful, to allow you to set different days to be ignored (e.g.

"skip all Fridays and Saturdays but include Sundays") or to set up dates that should always be skipped (e.g.

the dating code-23the dating code-9the dating code-73

One thought on “the dating code”

  1. Boasting to have the most in online ladies available, we also have the most in porn stars and video chat movie girls Not forgetting some of the other fun websites we enjoy browsing and keeping up to date with all the new fresh hotties that become available to them as well.

  2. These chat rooms are a great way to learn, from seasoned players to novices or those just curious we have room for everyone in our bdsm chat live training rooms These are the for training and for those inquisitive subby people who want to test the water without having to meet a Mistress face to face.

  3. Have you ever thought of getting into the role of an XXX movie director and casting your own cam girl from among thousands on offer, picking your favorite and letting her be the star of your adult cam show, while you are the boss, taking the action into the direction you desire?