![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| conversion of unix time format | sari | Windows & DOS: Issues & Discussions | 2 | 03-02-2008 11:33 PM |
| Conversion of time structure in C++ | electroon | High Level Programming | 1 | 01-05-2008 06:42 AM |
| Linux Going Big Time and Prime Time Against Windows, UNIX (WSJ) (Addict 3D) | iBot | UNIX and Linux RSS News | 0 | 06-21-2007 01:10 PM |
| conversion from EPOCH timestamp to local time zone | abhijeetkul | Shell Programming and Scripting | 2 | 02-17-2006 03:19 AM |
| Dos to Unix conversion | john413 | Shell Programming and Scripting | 1 | 09-10-2005 12:13 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
__________________
Thanks and Ragards -- kam |
| Forum Sponsor | ||
|
|
|
#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 |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|