|
|
 |
 |
 |
 |
Ruby Programming Language
|
 |
 |
 |
 |
 |
 |
 |
 |
changing timezones
Hi, Does anyone know how I can manipulate the timezone in ruby? I know that I get a date from unix seconds like Time.at(secs), but how can I get something like Time.at(secs, time_zone)? At the moment Time.at appears to pull in the environment setting for timezone, which I could reset, but that is not ideal ... Many thanks in advance. CHEERS> SAM
Hello, TzInfo is your friend: http://tzinfo.rubyforge.org/ -- Pau Garcia i Quiles http://www.elpauer.org (Due to the amount of work, I usually need 10 days to answer) Quoting Sam Joseph <s@neurogrid.com>:
> Hi, > Does anyone know how I can manipulate the timezone in ruby? I know that > I get a date from unix seconds like Time.at(secs), but how can I get > something like Time.at(secs, time_zone)? At the moment Time.at appears > to pull in the environment setting for timezone, which I could reset, > but that is not ideal ... > Many thanks in advance. > CHEERS> SAM
|
 |
 |
 |
 |
|