Explorar el Código

activity date

version-14
Rushabh Mehta hace 13 años
padre
commit
5d03e93f42
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      js/legacy/utils/datetime.js

+ 5
- 0
js/legacy/utils/datetime.js Ver fichero

@@ -68,6 +68,11 @@ wn.datetime = {
return ((d1-d2) / 86400000);
},
get_day_diff: function(d1, d2) {
return dateutil.get_diff(new Date(d1.getYear(), d1.getMonth(), d1.getDate(), 0, 0),
new Date(d2.getYear(), d2.getMonth(), d2.getDate(), 0, 0))
},
add_days: function(d, days) {
d.setTime(d.getTime()+(days*24*60*60*1000)); return d
},


Cargando…
Cancelar
Guardar