lib/kissy/5.0.0-alpha.3/lib/build/date/gregorian.js
function (field, v) {
            var len = arguments.length;
            if (len === 2) {
                this.fields[field] = v;
            } else if (len < MILLISECONDS + 1) {
                for (var i = 0; i < len; i++) {
                    this.fields[YEAR + i] = arguments[i];
                }
            } else {
                throw new Error('illegal arguments for KISSY GregorianCalendar set');
            }
            this.time = undefined;
        }
function (field, v) {
            var len = arguments.length;
            if (len === 2) {
                this.fields[field] = v;
            } else if (len < MILLISECONDS + 1) {
                for (var i = 0; i < len; i++) {
                    this.fields[YEAR + i] = arguments[i];
                }
            } else {
                throw new Error('illegal arguments for KISSY GregorianCalendar set');
            }
            this.time = undefined;
        }
function ( field , v ) { var len = arguments . length ; if ( len === 2 ) { this . fields [ field ] = v ; } else if ( len < MILLISECONDS + 1 ) { for ( var i = 0 ; i < len ; i ++ ) { this . fields [ YEAR + i ] = arguments [ i ] ; } } else { throw new Error ( 'illegal arguments for KISSY GregorianCalendar set' ) ; } this . time = undefined ; }
Returns the year of the given calendar field.
@method getYear
@returns {Number} the year for the given calendar field.
 
Returns the month of the given calendar field.
@method getMonth
@returns {Number} the month for the given calendar field.
 
Returns the day of month of the given calendar field.
@method getDayOfMonth
@returns {Number} the day of month for the given calendar field.
 
Returns the hour of day of the given calendar field.
@method getHourOfDay
@returns {Number} the hour of day for the given calendar field.
 
Returns the minute of the given calendar field.
@method getMinute
@returns {Number} the minute for the given calendar field.
 
Returns the second of the given calendar field.
@method getSecond
@returns {Number} the second for the given calendar field.
 
Returns the millisecond of the given calendar field.
@method getMilliSecond
@returns {Number} the millisecond for the given calendar field.
 
Returns the week of year of the given calendar field.
@method getWeekOfYear
@returns {Number} the week of year for the given calendar field.
 
Returns the week of month of the given calendar field.
@method getWeekOfMonth
@returns {Number} the week of month for the given calendar field.
 
Returns the day of year of the given calendar field.
@method getDayOfYear
@returns {Number} the day of year for the given calendar field.
 
Returns the day of week of the given calendar field.
@method getDayOfWeek
@returns {Number} the day of week for the given calendar field.
 
Returns the day of week in month of the given calendar field.
@method getDayOfWeekInMonth
@returns {Number} the day of week in month for the given calendar field.
 
Sets the given calendar field to the given value.
@param field the given calendar field.
@param v the value to be set for the given calendar field.
Returns the year of the given calendar field .