Changing the time zone in irssi

I usually set the time zone on my servers to UTC, but that makes it a bit confusing for me when I use irssi. If you have perl support built into irssi, you can run these commands to alter your time zone within irssi only:

/load perl
/script exec $ENV{'TZ'}='(nameofyourtimezone)';

For example, I'm in Central Time, so I'd use:

/script exec $ENV{'TZ'}='CST6CDT';

To update the time in your status bar, simply /whois yourself and you should see the updated time zone. If you want more handy irssi tips, look no further than irssi's documentation.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2009/11/03/changing-the-time-zone-in-irssi/ .
© Major Hayden 2010.

1 Comment   »

  • Anon The Moose says:

    If you're starting an application in bash and want to set environmental variables for it, you can use something along the lines of:

    $ TZ="CST6CDT" irssi
    

Trackbacks/Pingbacks

  1. Irssi Handy Tips… | The Geekery

RSS feed for comments on this post , TrackBack URI

Leave a Reply