code: function dayOfYear() {
        var is_leap = (ICAL.Time.isLeapYear(this.year) ? 1 : 0);
        var diypm = ICAL.Time.daysInYearPassedMonth;
        return diypm[is_leap][this.month - 1] + this.day;
      }
docs: Calculate the day of year.
  @return {Number}