MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Daylight savings time in DatePlus.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124457] Daylight savings time in DatePlus.
  • From: W Craig Carter <ccarter at mit.edu>
  • Date: Fri, 20 Jan 2012 01:52:04 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

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






  • Prev by Date: VectorColorFunction
  • Next by Date: Re: Tips for writing correct, non trivial Mathematica Libraries
  • Previous by thread: Re: VectorColorFunction
  • Next by thread: Re: Daylight savings time in DatePlus.