code: function(year, month, day) {
          var date = this._validate(year, month, day,
              _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);
          return date.toJD() - this.newDate(date.year(),
              this.fromMonthOfYear(date.year(), this.minMonth), this.minDay).toJD() + 1;
      }
docs: Retrieve the day of the year for a date.
  @memberof BaseCalendar
  @param year {CDate|number} The date to convert or the year to convert.
  @param [month] {number} The month to convert.
  @param [day] {number} The day to convert.
  @return {number} The day of the year.
  @throws Error if an invalid date or a different calendar used.