Global.Date.prototype.getExpiry (param)
return the future timespan between this Date object and the current Date or a different Date object

  • See also
    Date.prototype.getTimespan
Sourcecode in /home/hannes/helma/modules/core/Date.js:
142:   Date.prototype.getExpiry = function(param) {
143:       var age = this.getTimespan(param);
144:       if (age.isFuture)
145:           return age.span;
146:       return null;
147:   }