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.

Printed from: http://rackerhacker.com/2009/11/03/changing-the-time-zone-in-irssi/ .
© Major Hayden 2012.

3 Comments   »

  • 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
    
  • hypnotoad says:

    Thank you, this was very useful.

  • fzeta says:

    Madrid EspaƱa :
    /script exec $ENV{'TZ'}='UTC-1';

Trackbacks/Pingbacks

  1. Irssi Handy Tips… | The Geekery

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this