Some good code here for constructing lists of US market holidays. Also some good time zone checking code so one can tell from anywhere whether it is possible to live-stream quotes from the US markets.
Some of the other date/time related functions might need to cleanup.