[AstroPy] Determining DST in Python?
Tue Dec 29 20:49:37 CST 2009
This should do it for now.
2010 March 14 November 07 March 28 October 31
Sunday, March 8, 2009 at 2:00:00 AM
Sunday, November 1, 2009 at 2:00:00 AM
In 2008, daylight time begins on March 9 and ends on November 2.
In 2007, daylight time begins on March 11 and ends on November 4.New Law
NASA has a nice site all the way out to 2015
Wayne Watson wrote:
> Yes, I've begun to prowl around in that murky library. It has just a
> bit too much to 'easily' digest at the moment. I have used several of
> the functions. I would think that someone has faced this issue
> before. For the moment, the best I can think of is hard coding
> dates-times for my time zone in each of the last 3 years. I think there
> really only four, 2 for the past year, and 2 for prior years. I really
> only need to worry about my particularly time zone, Calif.
> Anne Archibald wrote:
>> 2009/12/29 Wayne Watson <email@example.com>:
>>> I'm trying to adjust a years worth of date-time stamps to UTC, and would
>>> like to determine where DST starts and finishes in years from about 2006
>>> to 2009. Is there an "easy" way to do this?
>> You can almost certainly do this with the standard library's datetime module:
>>> Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>> Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>> "We're leaving you with a world that runs like
>>> clockwork. And the clock it runs like is a cuckoo
>>> clock." -- Frank Oppenheimer, physicist
>>> Web Page: <www.speckledwithstars.net/>
>>> AstroPy mailing list
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
"We're leaving you with a world that runs like
clockwork. And the clock it runs like is a cuckoo
clock." -- Frank Oppenheimer, physicist
Web Page: <www.speckledwithstars.net/>
More information about the AstroPy