Snippet - Check For DST - Daylight Savings Time method

Check For DST - Daylight Savings Time method

DST_Check method accepts a DateTime parameter and returns a true/false DST (Daylight Savings Time) indicator. It is writting so that within a few minutes it can be adapted to any Time Zone needing to know if is DST. In this particluar example, it is setup for Eastern Standard Time (EST)/Eastern Daylight Time (EDT).

I use it with Version 4.0 .Net Micro Framework “TimeServices” to synchronize the DateTime with the Internet NTP reference servers. It is 100% independent of who is calling it, as it only needs a DateTime paramerter, and no special hardware other than the FEZ Spider mainboard.

It is well commented such that a lot of explnation here would be redundant. It can be run standalone to demsonstarte how it works and for testing when changing the time zone to something other than EST. Simply copy all the code and define a FEZ Spider mainboard and it should run out of the box.