Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87911 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2015-03-25 09:56 +1100 |
| Last post | 2015-03-25 09:56 +1100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Daylight savings time question Chris Angelico <rosuav@gmail.com> - 2015-03-25 09:56 +1100
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-03-25 09:56 +1100 |
| Subject | Re: Daylight savings time question |
| Message-ID | <mailman.122.1427237776.10327.python-list@python.org> |
On Wed, Mar 25, 2015 at 9:24 AM, Dan Stromberg <drsalists@gmail.com> wrote: > Is there a way of "adding" 4 hours and getting a jump of 5 hours on > March 8th, 2015 (due to Daylight Savings Time), without hardcoding > when to spring forward and when to fall back? I'd love it if there's > some library that'll do this for me. Fundamentally, this requires knowledge of timezone data. That means you have to select a political time zone, which basically means you want the Olsen database (tzdata) which primarily works with city names. I'm not sure whether "US/Pacific" is suitable; I usually use "America/Los_Angeles" for Pacific US time. But that aside, what Gary said is what I would recommend. ChrisA
Back to top | Article view | comp.lang.python
csiph-web