Timezone conversion

2004-11-28 Thread Jimmy Mäkelä | Loopia Webbhotell AB
Hi I'm trying to convert a date from one timezone into another using the date-command, but I can't seem to get it to work. The problem can be illustrated as below, though in reality I get the date from another source of course, otherwise I wouldn't have to do this. Take a date in some timezone

Re: Timezone conversion

2004-11-28 Thread
Jimmy Mkel | Loopia Webbhotell AB wrote: Hi I'm trying to convert a date from one timezone into another using the date-command, but I can't seem to get it to work. The problem can be illustrated as below, though in reality I get the date from another source of course, otherwise I wouldn't have

Re: Timezone conversion

2004-11-28 Thread jimmy
Quoting [EMAIL PROTECTED]: Try the following: 1. Output date in seconds from epoch SECONDS=$(date ... +%s) 2. Change the time zone. TZ=CET export TZ date -r $SECONDS Yes, but I have dates in the format specified in the earlier mail (with a different timezone-offset)