RE: [PATCH] SMPP validity
"Oded Arbel" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Comes to think about it, how about this for a simple solution (not tested at all) to SMPP validity calculation problem ?
gmtime = gw_gmtime(time(NULL));
localtime = gw_localtime(time(NULL));
gwqdiff = ((localtime.tm_hour - gmtime.tm_hour) * 4)
+ ((localtime.tm_min - gmtime.tm_min) / 15);
+gwqdiff = gwqdiff>12?gwqdiff-24:gwqdiff;
--
Oded Arbel
m-Wise mobile solutions
[email protected]
+972-9-9581711 (116)
+972-67-340014
::..
Reasons to Run Away 42-"Yeah, I am POSITIVE there are no traps...uh oh!"