node-calendar.js
function _toordinal(year, month, day) {
      var days_before_year = ((year - 1) * 365) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + Math.floor((year - 1) / 400);
      var days_before_month = _DAYS_BEFORE_MONTH[month] + (month > 2 && isleap(year) ? 1 : 0);
      return (days_before_year + days_before_month + day);
    }
function _toordinal(year, month, day) {
      var days_before_year = ((year - 1) * 365) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + Math.floor((year - 1) / 400);
      var days_before_month = _DAYS_BEFORE_MONTH[month] + (month > 2 && isleap(year) ? 1 : 0);
      return (days_before_year + days_before_month + day);
    }
function _toordinal ( year , month , day ) { var days_before_year = ( ( year - 1 ) * 365 ) + Math . floor ( ( year - 1 ) / 4 ) - Math . floor ( ( year - 1 ) / 100 ) + Math . floor ( ( year - 1 ) / 400 ) ; var days_before_month = _DAYS_BEFORE_MONTH [ month ] + ( month > 2 && isleap ( year ) ? 1 : 0 ) ; return ( days_before_year + days_before_month + day ) ; }
Calculates the ordinal time from given year, month, day values.

@param {Number} year
@param {Number} month
@param {Number} day
@api private
Calculates the ordinal time from given year month day values .