If that's the case, then its still not exactly what I'm looking for.
What I'm looking for is this:
I have 2 schedules that are run alternately on multiple servers
Schedule A runs on day 0
Schedule B runs on day 1
If there is a maintenance on one server, I want it to continue on...
I primarily use PHP so I have no problem parsing and reading the file.
$ini_array = parse_ini_file(myini.ini, true);
for($i=1; $i <= 28; $i++){
echo $ini_array['feb']['$i'];
}
However, after reading your python script, I'm still a little confused as to how it works.
My overall goal is as I stated it before. Assigning a number to a day, in which, alternates every other day unless there is an exception, such as a weekend or holiday.
I would like for it to start on an arbitrary date, continue on while alternating between 0s and 1s, skipping weekends and...
Nope. I just looked through your code again and I realized that you thought I mean every monday = 1 or tuesday = 0.
If I added on to my February example, you would come up with this:
Feb 1st = 0
Feb 2nd = 1
Feb 3rd = 0
Feb 4th = 1
Feb 5th = skip
Feb 6th = weekend
Feb 7th = weekend...
Yeah, that is what I mean, but it doesn't work when you skip a day.
For instance:
Feb 1st = day 0
Feb 2nd = day 1
Feb 3rd = day 0
Feb 4th = day 1
Feb 5th = skip
Feb 8th = day 1
Say I wanted to set a day as 0 or 1 for weekdays only, alternating every day with an occasional day where you skip alternating and go on to the old value.
E.g. 0,1,0,1,0,break,0,1,0,1,0
The problem is that PETA assumes all animals should have the exact same rights as humans. They're assuming that all animals are self-aware, sentient, and anything else you want to mention.