Does TZInfo bring you closer?
Stolen from the README:
Example usage
To convert a time in UTC to a local time in the America/New_York timezone,
you can do the following:
require_gem 'tzinfo'
include TZInfo
tz = Timezone.get('America/New_York')
local = tz.utc_to_local(Time.utc(2005,8,29,15,35,0))
Note that the Time returned will look like it is UTC (Time.zone will return
"UTC"). This is because it is not currently possible to change the offset
of an individual Time instance.
nope. timezones are politicalized solar local times. basically i'm searching
a polar orbiting satellite data set for scanlines where the localtime is about
7 am. it sounds easy - it's near impossible.
-a
--
to foster inner awareness, introspection, and reasoning is more efficient than
meditation and prayer.
- h.h. the 14th dali lama
Re: timezone setting ... afaik the Linux kernel keeps the systemtime in UTC.... corrected by the value in /etc/timezone to the local time.... whatever timezone you want with all the historic idiosyncracies of each ... It is a copy of one of the zoneinfo files found ... (Ubuntu)
Re: UTCNow <> GMT ... Unless you are working in the actual GMT timezone,, then forget about GMT. ... Store your timestamps as 'local time' in relation to the defined timezone of the computer along with some information about the timezone. ... If you do this you need to store the timezone information in such a manner that a 'local time' in say, Brazil, can be correctly displayed as a 'local time' in, say, India. ... This entails converting the Brazilian value to UTC and then converting the result to the appropriate Indian value. ... (microsoft.public.dotnet.languages.vb)
Setting windows/win32 timezone from python ... an arbitrary timezone. ... To do this on UNIX is relatively straightforward by setting the TZ ... the mapping from utc -> local time won't have the correct ... (comp.lang.python)
Re: Can or should the NTP protocol eventually serve timezone data? ... How you torture UTC to get your preferred local time is entirely up to you. ...Kludging local timezone conversions into the NTP protocol somehow would be a nightmare if you could persuade anyone to do it! ... (comp.protocols.time.ntp)
Re: What time is it? Issues with Local time, system time, DST ... Apparently CE stores time in local time,... be for local time, not UTC....RTC, so that when processor is asleep or off, onboard batteries ... you can't know the UTC unless you also have, in some non-volatile... (microsoft.public.windowsce.platbuilder)