Global.Date.prototype.getAge (param)
return the past 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:
129:   Date.prototype.getAge = function(param) {
130:       var age = this.getTimespan(param);
131:       if (!age.isFuture)
132:           return age.span;
133:       return null;
134:   }