Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

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>:

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc