|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | RE: [ECS] Dates Joseph LaFerla Sun, 19 Nov 2000 21:44:55 -0700 |
Thanks for this. I have just returned from a long stint on business so
forgive the delay. I will take a look at this in terms of implementing. I
may be back with more questions, A.J!
Talk to you later.
-----Original Message-----
From: A.J. Griglak [mailto:aj@griglak.com]
Sent: November 13, 2000 6:12 PM
To: ecs-list@netbloc.com
Subject: RE: [ECS] Dates
Joe,
A couple of weeks ago, I set out to do just that. I haven't quite got it
finished, but here's what I was attempting to do...
First, I set up a True/False flag that would denote if the current day is a
holiday so that heating schedules, etc. could be adjusted as if it was a
weekend.
I found a web site listing all the holidays and what day of the month they
fall on. I can't remember the actual site that I used, but here is a
similar one:
http://mindprod.com/HolidayCalculatorNative.html
I wanted ECS to figure out the days, without hardcoding the days in each
year. My idea is that on every 1st of the month, ECS will calculate the
holidays for that month. For example,
BEGINIF Month Is January
;----------Martin Luther King - 3rd Monday in Jan
Do Hol:MLK Set 3rd Sunday
Then Hol:MLK Add 1
ENDIF
;
Hol:MLK would be a number, which would then be set to the day of the month
that the Holiday falls on. I haven't really finished it up - for example,
setting of the true/false flag when a holiday is true, but it should work
OK.
One thing, though - Easter is pretty complicated - you'll see when you check
out that web site. I was thinking of just hard coding in Easter for the
next couple of years instead of trying to calculate that one.
Hope this helps in some way, and if anyone has a better way to do it, I'm
all ears!
-=A.J.
-----Original Message-----
From: Joseph LaFerla [mailto:jlafe@ntnet.nt.ca]
Sent: Monday, November 13, 2000 4:49 PM
To: Ecs-List (E-mail)
Subject: [ECS] Dates
Hi all
I was wondering if anyone had any ideas to assist me here. I have a flag in
my ecs system that denotes a statutory holiday. I am looking for an easy
way of presetting the statutory holidays for a year and then ecs would set
or clear the flag as necessary. I was thinking of putting the days and
dates in a file and then reading the file with ecs and doing a comparison
but I am not quite sure how this can be done.
Any ideas would be greatly appreciated. Thanks in advance.
Joe
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects