On 27/03/2008, Edwin Pratomo <[EMAIL PROTECTED]> wrote:

>  my answer didn't suggest you to change timezone. if you run it, your timezone
>  is not affected.
>  and of course you can polish it into .to_pst or something by doing the env
>  setting temporarily.
>  about that Europe Paris or anywhere else, of course you can pick the timezone
>  list on your (POSIX) system. mine is in /usr/share/zoneinfo

I knew that command won't change my timezone, however I'm not sure
that command might help, cos that is how to *set* the current time,
not to *get* the current time. Can you do that command *inside irb* to
*get* a local variable as a PST ?

irb
>> a = Time.now
>> IO.popen("env something #{a}") <------------- this is too ugly if
this what you meant

>  rgds,
>  Edwin

-- 
blog: http://tinyurl.com/2bjgvn,
ruby: http://www.ruby-lang.org/id/about

I always thought Smalltalk would beat Java, I just didn't know it
would be called 'Ruby' when it did. -- Kent Beck.

Kirim email ke