<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux / UNIX: display time of different time zones using TZ environment variable</title> <atom:link href="http://www.cyberciti.biz/tips/date-command-set-tz-environment-variable.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/date-command-set-tz-environment-variable.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Dracie</title><link>http://www.cyberciti.biz/tips/date-command-set-tz-environment-variable.html#comment-148061</link> <dc:creator>Dracie</dc:creator> <pubDate>Thu, 09 Apr 2009 05:55:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/date-command-set-tz-environment-variable.html#comment-148061</guid> <description>why would you need to export it?  Bash is a line by line shell interpreter, so you can just put the TZ variable before the program date.  Like this:  TZ=America/New_York date.  This is a better solution if you just need to check the time difference real quick.
If you are living in a different time zone in awhile just change your timezone in /etc/rc.conf or whichever file your *NIX distribution configures this sort of thing.
The only time i had to export this variable is on my account on a shell server.  It is based in Germany and I live in usa so I just had to put &lt;code&gt;export TZ=America/Chicago&lt;/code&gt; in my .bashrc.
Thanks, and have a good one</description> <content:encoded><![CDATA[<p>why would you need to export it?  Bash is a line by line shell interpreter, so you can just put the TZ variable before the program date.  Like this:  TZ=America/New_York date.  This is a better solution if you just need to check the time difference real quick.</p><p>If you are living in a different time zone in awhile just change your timezone in /etc/rc.conf or whichever file your *NIX distribution configures this sort of thing.</p><p>The only time i had to export this variable is on my account on a shell server.  It is based in Germany and I live in usa so I just had to put <code>export TZ=America/Chicago</code> in my .bashrc.</p><p>Thanks, and have a good one</p> ]]></content:encoded> </item> </channel> </rss>
