Link to home
Start Free TrialLog in
Avatar of phanivas
phanivas

asked on

time zone to GMT

Hi,

I want to set my time zone to GMT so that whenever i type in date it should return the time in GMT. I am using redhat linux 9.0. Currently when i type the command "date" it is returning the time as BST also when i type the command clock it is returning as BST. I want it to return time as GMT. what can i do. The option "system clock uses UTC is enabled" in redhat-config-date. pls reply urgently

thanks
phani
Avatar of jlevie
jlevie

redhat-config-date can be used to set the TimeZone the OS uses.
date -u         prints date in UTC timezone which is AFAIK  == GMT
ASKER CERTIFIED SOLUTION
Avatar of sciuriware
sciuriware

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hm, is there some compelling reason you don't want BST? You'd likely miss out on DST with a straight UTC timezone... As gottestod says, it's easy getting the UTC equivalent time.
And brittish standard time is perhaps the definition of "nonstandard time (still the admiralty that suggest things like DST to the house of commons, right), so I could sympathize with such an argument, but... why be out of sync:-):-)

-- Glenn
If you want daylight saving time (summer time in Britain), then specify:
export TZ=GMT0GMST,M3.5.0,M10.5.0/3

that's the official European formula to which even London complies.
I'm not sure about the name GMST ....

;JOOP!