On Thursday 08 March 2007 21:35, Manish Popli wrote:
> see i wrote this..but i m getting diffrence 0 instead 5..
> difference shoud be five..

I have no clue what you're trying to do, but if you just want to find 
out the offset between GMT and your current timezone, there are 
easier ways to do it.  Since I prefer Perl, here's one way:

perl -MDate::Calc -e '@x=Date::Calc::Timezone;printf "%02d:%02d\n",
$x[3],$x[4];'

[Line would have wrapped]

Regards,

-- Raju
-- 
Raj Mathur           [EMAIL PROTECTED]   http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves

_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to