Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

time zone 1 hr east of

7 views
Skip to first unread message

The Derfer

unread,
Jul 31, 2012, 1:19:24 AM7/31/12
to
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.

Bill Marcum

unread,
Aug 5, 2012, 10:56:07 AM8/5/12
to
You could use TZ=America/Halifax, or if you have GNU date,
date -d 'now + 2 hours'

0 new messages