(now, then)
| 240 | |
| 241 | // @ro: to calculate time until expiration |
| 242 | function timeUntil(now, then) { |
| 243 | var timestampNow = Date.parse(now); |
| 244 | var timestampThen = Date.parse(then); |
| 245 | var diff = new Date(timestampThen - timestampNow); |
| 246 | |
| 247 | diff.setSeconds(Math.round(diff.getSeconds() / 30) * 30); |
| 248 | |
| 249 | return diff; |
| 250 | } |
| 251 | |
| 252 | function displayMessageOnMap(msg, olat, olong, sessid, icostr, expir, pokenick) { |
| 253 | // @ro: passing values split from incoming payload into two variables for now (lat and long) |
nothing calls this directly
no test coverage detected