lib/kissy/5.0.0-alpha.3/lib/build/date/gregorian.js
function GregorianCalendar(timezoneOffset, locale) {
        var args = util.makeArray(arguments);
        if (typeof timezoneOffset === 'object') {
            locale = timezoneOffset;
            timezoneOffset = locale.timezoneOffset;
        } else if (args.length >= 3) {
            timezoneOffset = locale = null;
        }
        locale = locale || defaultLocale;
        this.locale = locale;
        this.fields = [];    /**
     * The currently set time for this date.
     * @protected
     * @type Number|undefined
     */
        /**
     * The currently set time for this date.
     * @protected
     * @type Number|undefined
     */
        this.time = undefined;    /**
     * The timezoneOffset in minutes used by this date.
     * @type Number
     * @protected
     */
        /**
     * The timezoneOffset in minutes used by this date.
     * @type Number
     * @protected
     */
        this.timezoneOffset = timezoneOffset || locale.timezoneOffset;    /**
     * The first day of the week
     * @type Number
     * @protected
     */
        /**
     * The first day of the week
     * @type Number
     * @protected
     */
        this.firstDayOfWeek = locale.firstDayOfWeek;    /**
     * The number of days required for the first week in a month or year,
     * with possible values from 1 to 7.
     * @@protected
     * @type Number
     */
        /**
     * The number of days required for the first week in a month or year,
     * with possible values from 1 to 7.
     * @@protected
     * @type Number
     */
        this.minimalDaysInFirstWeek = locale.minimalDaysInFirstWeek;
        this.fieldsComputed = false;
        if (arguments.length >= 3) {
            this.set.apply(this, args);
        }
    }
function GregorianCalendar(timezoneOffset, locale) {
        var args = util.makeArray(arguments);
        if (typeof timezoneOffset === 'object') {
            locale = timezoneOffset;
            timezoneOffset = locale.timezoneOffset;
        } else if (args.length >= 3) {
            timezoneOffset = locale = null;
        }
        locale = locale || defaultLocale;
        this.locale = locale;
        this.fields = [];    /**
     * The currently set time for this date.
     * @protected
     * @type Number|undefined
     */
        /**
     * The currently set time for this date.
     * @protected
     * @type Number|undefined
     */
        this.time = undefined;    /**
     * The timezoneOffset in minutes used by this date.
     * @type Number
     * @protected
     */
        /**
     * The timezoneOffset in minutes used by this date.
     * @type Number
     * @protected
     */
        this.timezoneOffset = timezoneOffset || locale.timezoneOffset;    /**
     * The first day of the week
     * @type Number
     * @protected
     */
        /**
     * The first day of the week
     * @type Number
     * @protected
     */
        this.firstDayOfWeek = locale.firstDayOfWeek;    /**
     * The number of days required for the first week in a month or year,
     * with possible values from 1 to 7.
     * @@protected
     * @type Number
     */
        /**
     * The number of days required for the first week in a month or year,
     * with possible values from 1 to 7.
     * @@protected
     * @type Number
     */
        this.minimalDaysInFirstWeek = locale.minimalDaysInFirstWeek;
        this.fieldsComputed = false;
        if (arguments.length >= 3) {
            this.set.apply(this, args);
        }
    }
function GregorianCalendar ( timezoneOffset , locale ) { var args = util . makeArray ( arguments ) ; if ( typeof timezoneOffset === 'object' ) { locale = timezoneOffset ; timezoneOffset = locale . timezoneOffset ; } else if ( args . length >= 3 ) { timezoneOffset = locale = null ; } locale = locale || defaultLocale ; this . locale = locale ; this . fields = [ ] ; /**
     * The currently set time for this date.
     * @protected
     * @type Number|undefined
     */ /**
     * The currently set time for this date.
     * @protected
     * @type Number|undefined
     */ this . time = undefined ; /**
     * The timezoneOffset in minutes used by this date.
     * @type Number
     * @protected
     */ /**
     * The timezoneOffset in minutes used by this date.
     * @type Number
     * @protected
     */ this . timezoneOffset = timezoneOffset || locale . timezoneOffset ; /**
     * The first day of the week
     * @type Number
     * @protected
     */ /**
     * The first day of the week
     * @type Number
     * @protected
     */ this . firstDayOfWeek = locale . firstDayOfWeek ; /**
     * The number of days required for the first week in a month or year,
     * with possible values from 1 to 7.
     * @@protected
     * @type Number
     */ /**
     * The number of days required for the first week in a month or year,
     * with possible values from 1 to 7.
     * @@protected
     * @type Number
     */ this . minimalDaysInFirstWeek = locale . minimalDaysInFirstWeek ; this . fieldsComputed = false ; if ( arguments . length >= 3 ) { this . set . apply ( this , args ) ; } }
GregorianCalendar class.

- no arguments:
Constructs a default GregorianCalendar using the current time
in the default time zone with the default locale.
- one argument timezoneOffset:
Constructs a GregorianCalendar based on the current time
in the given timezoneOffset with the default locale.
- one argument locale:
Constructs a GregorianCalendar
based on the current time in the default time zone with the given locale.
- two arguments
Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.
- zone - the given time zone.
- aLocale - the given locale.

- 3 to 6 arguments:
Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.
- year - the value used to set the YEAR calendar field in the calendar.
- month - the value used to set the MONTH calendar field in the calendar. Month value is 0-based. e.g.,
0 for January.
- dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.
- hourOfDay - the value used to set the HOUR_OF_DAY calendar field in the calendar.
- minute - the value used to set the MINUTE calendar field in the calendar.
- second - the value used to set the SECONDS calendar field in the calendar.


@class KISSY.Date.Gregorian
 
GregorianCalendar class.

- no arguments:
Constructs a default GregorianCalendar using the current time
in the default time zone with the default locale.
- one argument timezoneOffset:
Constructs a GregorianCalendar based on the current time
in the given timezoneOffset with the default locale.
- one argument locale:
Constructs a GregorianCalendar
based on the current time in the default time zone with the given locale.
- two arguments
Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.
- zone - the given time zone.
- aLocale - the given locale.

- 3 to 6 arguments:
Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.
- year - the value used to set the YEAR calendar field in the calendar.
- month - the value used to set the MONTH calendar field in the calendar. Month value is 0-based. e.g.,
0 for January.
- dayOfMonth - the value used to set the DAY_OF_MONTH calendar field in the calendar.
- hourOfDay - the value used to set the HOUR_OF_DAY calendar field in the calendar.
- minute - the value used to set the MINUTE calendar field in the calendar.
- second - the value used to set the SECONDS calendar field in the calendar.


@class KISSY.Date.Gregorian
GregorianCalendar class .