From a server hosted in Poland (UTC +01:00), is there a way I can consistently have a crontab entry run at 9am New York time (UTC -05:00)?
For me this wasn't trivial since the daylight saving time ended last Sunday in Poland, so jobs that I have scheduled to run at 15:00 their local time most of the year are late this week by an hour from the point of view of US stock exchanges.
I remember Congress' decision a few years ago to extend DST, which put things out of sync for a few weeks per year.
One workaround I am not even sure would work (which I prefer to avoid anyhow) is that when I have a task:
0 14 * * * something
I fetch NY's time TZ=":US/Eastern" date +%s and compare using bash arithmetic whether I should sleep 3600 or not before running something
TZ=':America/New_York') to have all your cron jobs run in New York time. BTW: New York is currently on DST, and is thus UTC-0400. – derobert Nov 1 '12 at 16:02dateeg.TZ=":US/Eastern" date +%Y%m%d– Marcos Nov 1 '12 at 16:04