code: function fromSeconds(aSeconds) {
        var secs = Math.abs(aSeconds);
  
        this.isNegative = (aSeconds < 0);
        this.days = ICAL.helpers.trunc(secs / 86400);
  
        // If we have a flat number of weeks, use them.
        if (this.days % 7 == 0) {
          this.weeks = this.days / 7;
          this.days = 0;
        } else {
          this.weeks = 0;
        }
  
        secs -= (this.days + 7 * this.weeks) * 86400;
  
        this.hours = ICAL.helpers.trunc(secs / 3600);
        secs -= this.hours * 3600;
  
        this.minutes = ICAL.helpers.trunc(secs / 60);
        secs -= this.minutes * 60;
  
        this.seconds = secs;
        return this;
      }
docs: Reads the passed seconds value into this duration object. Afterwards,
  members like {@link ICAL.Duration#days days} and {@link ICAL.Duration#weeks weeks} will be set up
  accordingly.
  
  @param {Number} aSeconds     The duration value in seconds
  @return {ICAL.Duration}      Returns this instance