RE: [PATCH] SMPP validity

"Angel Fradejas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
>> In that case the calculation to get the difference in minutes may be
>> more like
>> 
>> (local_tm.tm_year - gmt_tm.tm_year) * 365*24*60 +
>> (local_tm.tm_yday - gmt_tm.tm_yday) * 24*60 +
>> (local_tm.tm_hour - gmt_tm.tm_hour) * 60 +
>> (local_tm.tm_min  - gmt_tm.tm_min );
>
>Why would I want to handle years and days when I only need the hour
>difference ?

Think of 31/12/2002 22:00 GMT, it is 01/01/2003 03:00 GMT+5 for example.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.