Script to change Timezone(Solaris)

india
22/11/2009 10:00:00 AM
sweden
22/11/2009 01:30:00 PM

As mentioned above i will get the datetime string from my customer and i need to change that String into diffrnt timezone as mentioned above.

---------- Post updated at 01:54 AM ---------- Previous update was at 01:01 AM ----------

Your help will be highly appreciated

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

Use GNU date

$  date -d "11/22/2009 10:00:00 AM + 210 minutes" "+%d/%m/%Y %r"
22/11/2009 01:30:00 PM

Hi,

Solaris doesn't support this.

Regards,
Vikas Mahajan:mad:

But you can install GNU date in your home directory, if you don't have root permission.

I run the command on my Solaris box.

Use TZ variable to change the date