Hi,
Is there any way to get current time for a particular country using any unix command ?
I mean, If i want to find out current time in US or UK or anything ....
Any command or library routine available for that?
How it can be done in C on Unix?
Can anybody help me?
Thanks
--
Kamlakar
PxT
2
Look at the the gettimeofday() system call. It can deal with timezones. Alternately at the command line you could just do something like:
TZ=GMT0 date
Which would return the Dreenwhich Mean Time (aka UTC). You could substitute any timezone specification:
TZ=PST8PDT date