date problem

when you typed date it gives an output:

Fri Apr 12 10:07:59 MET DST 2002

how can i adjust this settings so it should read:

Fri Apr 12 10:07:59 GMT 2002

i've already search the forum but the answer was never completed.

by the way my UNIX is in solaris 7... :wink:

thanks.

You can set an alias to give you something different like:

date +'%n %D %A %T%n'

But I do not believe attempting it to show GMT will give you the same time (I'm not even sure you can do that - I've never found a list of which letters do what with date...some are listed in the man page but the others I have found by trying)

The command "date -u" will switch to GMT.

For a more complete list of the format characters that you can use with the date command, type "man strftime".