X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/src/core/src/lang/Date.js diff --git a/src/core/src/lang/Date.js b/src/core/src/lang/Date.js index c4473812..0fefc30f 100644 --- a/src/core/src/lang/Date.js +++ b/src/core/src/lang/Date.js @@ -182,7 +182,6 @@ Ext.Date = { * default behaviour of javascript Date objects. * (see {@link #parse} for more information) * Defaults to false. - * @static * @type Boolean */ useStrict: false, @@ -225,7 +224,6 @@ Ext.Date.parseFunctions['x-date-format'] = myDateParser; *

To enable Dates to also be formatted according to that format, a corresponding * formatting function must be placed into the {@link #formatFunctions} property. * @property parseFunctions - * @static * @type Object */ parseFunctions: { @@ -254,7 +252,6 @@ Ext.Date.formatFunctions['x-date-format'] = myDateFormatter; *

To enable date strings to also be parsed according to that format, a corresponding * parsing function must be placed into the {@link #parseFunctions} property. * @property formatFunctions - * @static * @type Object */ formatFunctions: { @@ -268,48 +265,41 @@ Ext.Date.formatFunctions['x-date-format'] = myDateFormatter; /** * Date interval constant - * @static * @type String */ MILLI : "ms", /** * Date interval constant - * @static * @type String */ SECOND : "s", /** * Date interval constant - * @static * @type String */ MINUTE : "mi", /** Date interval constant - * @static * @type String */ HOUR : "h", /** * Date interval constant - * @static * @type String */ DAY : "d", /** * Date interval constant - * @static * @type String */ MONTH : "mo", /** * Date interval constant - * @static * @type String */ YEAR : "y", @@ -340,12 +330,12 @@ Ext.Date.defaults.d = 1; Ext.Date.parse('2009-02', 'Y-m'); // returns a Date object representing February 1st 2009 * @property defaults - * @static * @type Object */ defaults: {}, /** + * @property {String[]} dayNames * An array of textual day names. * Override these values for international dates. * Example: @@ -356,8 +346,6 @@ Ext.Date.dayNames = [ ... ]; - * @type Array - * @static */ dayNames : [ "Sunday", @@ -370,6 +358,7 @@ Ext.Date.dayNames = [ ], /** + * @property {String[]} monthNames * An array of textual month names. * Override these values for international dates. * Example: @@ -380,8 +369,6 @@ Ext.Date.monthNames = [ ... ]; - * @type Array - * @static */ monthNames : [ "January", @@ -399,6 +386,7 @@ Ext.Date.monthNames = [ ], /** + * @property {Object} monthNumbers * An object hash of zero-based javascript month numbers (with short month names as keys. note: keys are case-sensitive). * Override these values for international dates. * Example: @@ -409,8 +397,6 @@ Ext.Date.monthNumbers = { ... }; - * @type Object - * @static */ monthNumbers : { Jan:0, @@ -427,12 +413,10 @@ Ext.Date.monthNumbers = { Dec:11 }, /** + * @property {String} defaultFormat *

The date format string that the {@link Ext.util.Format#dateRenderer} * and {@link Ext.util.Format#date} functions use. See {@link Ext.Date} for details.

- *

This defaults to m/d/Y, but may be overridden in a locale file.

- * @property defaultFormat - * @static - * @type String + *

This may be overridden in a locale file.

*/ defaultFormat : "m/d/Y", /** @@ -440,7 +424,6 @@ Ext.Date.monthNumbers = { * Override this function for international dates. * @param {Number} month A zero-based javascript month number. * @return {String} The short month name. - * @static */ getShortMonthName : function(month) { return utilDate.monthNames[month].substring(0, 3); @@ -451,7 +434,6 @@ Ext.Date.monthNumbers = { * Override this function for international dates. * @param {Number} day A zero-based javascript day number. * @return {String} The short day name. - * @static */ getShortDayName : function(day) { return utilDate.dayNames[day].substring(0, 3); @@ -462,7 +444,6 @@ Ext.Date.monthNumbers = { * Override this function for international dates. * @param {String} name The short/full month name. * @return {Number} The zero-based javascript month number. - * @static */ getMonthNumber : function(name) { // handle camel casing for english month names (since the keys for the Ext.Date.monthNumbers hash are case sensitive) @@ -473,7 +454,6 @@ Ext.Date.monthNumbers = { * Checks if the specified format contains hour information * @param {String} format The format to check * @return {Boolean} True if the format contains hour information - * @static * @method */ formatContainsHourInfo : (function(){ @@ -490,7 +470,6 @@ Ext.Date.monthNumbers = { * @param {String} format The format to check * @return {Boolean} True if the format contains information about * date/day information. - * @static * @method */ formatContainsDateInfo : (function(){ @@ -515,7 +494,6 @@ Ext.Date.formatCodes.x = "Ext.util.Format.leftPad(this.getDate(), 2, '0')"; console.log(Ext.Date.format(new Date(), 'X'); // returns the current day of the month * @type Object - * @static */ formatCodes : { d: "Ext.String.leftPad(this.getDate(), 2, '0')", @@ -585,7 +563,6 @@ console.log(Ext.Date.format(new Date(), 'X'); // returns the current day of the * @param {Number} second (optional) Second * @param {Number} millisecond (optional) Millisecond * @return {Boolean} true if the passed parameters do not cause a Date "rollover", false otherwise. - * @static */ isValid : function(y, m, d, h, i, s, ms) { // setup defaults @@ -635,7 +612,6 @@ dt = Ext.Date.parse("2006-02-29 03:20:01", "Y-m-d H:i:s", true); // returns null * @param {Boolean} strict (optional) True to validate date strings while parsing (i.e. prevents javascript Date "rollover") (defaults to false). Invalid date strings will return null when parsed. * @return {Date} The parsed Date. - * @static */ parse : function(input, format, strict) { var p = utilDate.parseFunctions;