Xavier Noria wrote in post #1092798:
> Just curious.
>
> A Unix epoch is UTC by definition, do you know what generates those
> time zone dependent integers?

Yes -- it's part of the GreenButton energy reporting standard.  If 
you're feeling masochistic, see:
   http://www.openespi.org/
   http://www.naesb.org/ESPI_Standards.asp

I dug down into the xls code and it appears that they're ignoring 
timezones altogether.  Since a billing interval of "midnight to 
midnight" is always in the context of the local time, this is probably a 
reasonable approach.

Now that I think about it, I could just adopt that technique as well, in 
which case I can always coerce to UTC:

  t = Time.at(1325376000).to_datetime.new_offset("00:00")

Perhaps there's a simpler way?

-- 
Posted via http://www.ruby-forum.com/.