AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Both the EST and GMT were indiacates same time , How can i convert the GMT

  • 1.  Both the EST and GMT were indiacates same time , How can i convert the GMT

    Posted Sat January 23, 2010 08:31 AM

    Originally posted by: raja7


    Hi All,
    We have to check the command date means it should be indicate date with timezone

    But we execute date -u means it should be convert GMT timezone

    Please find the follwing commands

    #date
    Sat Jan 23 08:02:28 EST 2010
    #date -u
    Sat Jan 23 08:02:32 GMT 2010

    Here both the EST and GMT were indiacates same time , How can i convert the GMT time?

    Thanks & Regards
    Raja


  • 2.  Re: Both the EST and GMT were indiacates same time , How can i convert the GMT

    Posted Wed February 03, 2010 10:57 PM

    Originally posted by: SystemAdmin


    Hi Raja,

    Check your timezone, it sounds as thought your TZ variable is set to TZ=EST without an offset.

    If this is in Qld Australia, the set the timezone in /etc/environment to:
    TZ=EST-10
    If this is NSW, Vic then for daylight saving you need:
    TZ=EST-10AEDT,M10.1.0,M4.1.0

    You can also set it in your .profile, but this only affects your login.

    Regards,
    George