Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8034 > unrolled thread
| Started by | W Craig Carter <ccarter@mit.edu> |
|---|---|
| First post | 2012-01-20 06:55 +0000 |
| Last post | 2012-01-20 06:55 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Daylight savings time in DatePlus. W Craig Carter <ccarter@mit.edu> - 2012-01-20 06:55 +0000
| From | W Craig Carter <ccarter@mit.edu> |
|---|---|
| Date | 2012-01-20 06:55 +0000 |
| Subject | Daylight savings time in DatePlus. |
| Message-ID | <jfb34a$hqf$1@smc.vnet.net> |
Hello,
I need to account for daylight savings time in list of data representing
each hour in year 2010. I would like to correlate that with other data
taken at 15 second intervals in the same year.
In 2010 daylight savings time in the US began on 14 March 2AM.
DateDifference[{2010, 1, 1, 1}, {2010, 3, 14, 1}, "Hour"] (*1728 hours after beginning of year*)
DateString /@ (DatePlus[{2010, 1, 1, 1}, {#, "Hour"}] & /@Range[1728, 1738])
(*doesn't reflect that 3AM should follow 1AM*)
In hindsight, this is not surprising because daylight savings time
shifts are not standardized intranationally or internationally. I don't
see any clever work-around. Does anyone else?
Craig
W Craig Carter
Professor of Materials Science, MIT
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web