From: Fearless Fool Date: 2013-01-18T23:28:42+09:00 Subject: converting Unix time to Ruby time I've been passed an integer: 1325376000 ... which is the number of seconds since midnight, Jan 1, 1970 IN A SPECIFIC TIME ZONE (in this case, Pacific). Assuming I know the time zone (I actually don't -- see PS below), how to I convert this into a Ruby time object? I could fudge by adding the number of seconds in the time zone offset, but that seems suspect. - ff P.S.: Even if I know that 1325376000 is given in Pacific Time, I don't know a-priori if that's UTC-0800 or UTC-0700 because of daylight savings time. If there's an easy way to take that into account, that would be nifty. -- Posted via http://www.ruby-forum.com/.