Article View: alt.comp.lang.shell.unix.bourne-bash
Article #7time zone 1 hr east of
From: The Derfer
Date: Tue, 31 Jul 2012 05:19
Date: Tue, 31 Jul 2012 05:19
23 lines
2323 bytes
2323 bytes
For a script I need to create file names with date embedded in them, and since a lot of the files arrive (the box is in CDT) after midnight EDT but just prior to it in CDT, I issue this at the top of the script: export TZ=America/New_York ... and get file names created for what (to CDT) would be the next day. Which is what I need. But that doesn't help me if the files I need to rename arrive prior to 11 PM CDT. What is the next time zone east of America/New_York (1 hour east) and hence, how would I modify the above command to reflect it? It's the only easy way to force the script to rename files with the next day's date in it. Otherwise the next script that needs to process them will think they're the previous day's files and error out. Thanks in advance.
Technical Details
Message-ID:
<f5e80503-8632-4e5e-a4f1-7db1fd8a95f7@u20g2000yqk.googlegroups.com>Path:
arc1-ca.pugleaf.net!g9ni2446753pbo.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin2!goblin.stu.neva.ru!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!u20g2000yqk.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 4d82dd0a1,101dda0a2fd289b0,start
X-Google-Attributes: gid4d82dd0a1,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.141.225 with SMTP id rr1mr497296pbb.2.1344317237190;
Mon, 06 Aug 2012 22:27:17 -0700 (PDT)
Path: arc1-ca.pugleaf.net!g9ni2446753pbo.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin2!goblin.stu.neva.ru!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!u20g2000yqk.googlegroups.com!not-for-mail
From: The Derfer <derf109@gmail.com>
Newsgroups: alt.comp.lang.shell.unix.bourne-bash,gnu.bash
Subject: time zone 1 hr east of
Date: Mon, 30 Jul 2012 22:19:24 -0700 (PDT)
Organization: http://groups.google.com
Lines: 23
Message-ID: <f5e80503-8632-4e5e-a4f1-7db1fd8a95f7@u20g2000yqk.googlegroups.com>
NNTP-Posting-Host: 98.219.95.207
Mime-Version: 1.0
X-Trace: posting.google.com 1343711965 23560 127.0.0.1 (31 Jul 2012 05:19:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 31 Jul 2012 05:19:25 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: u20g2000yqk.googlegroups.com; posting-host=98.219.95.207; posting-account=s_py_AoAAAASLmY5te0cCBZ72maisU8c
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11
(KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11,gzip(gfe)
Bytes: 1985
Content-Type: text/plain; charset=ISO-8859-1