X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Date4.html diff --git a/docs/source/Date4.html b/docs/source/Date4.html index 62ffa02f..81750bcf 100644 --- a/docs/source/Date4.html +++ b/docs/source/Date4.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.Date
* A set of useful static methods to deal with date
* Note that if Ext.Date is required and loaded, it will copy all methods / properties to
@@ -128,9 +145,10 @@ function xf(format) {
}
Ext.Date = {
- /**
+ /**
* Returns the current timestamp
* @return {Date} The current timestamp
+ * @method
*/
now: Date.now || function() {
return +new Date();
@@ -412,8 +430,8 @@ Ext.Date.monthNumbers = {
Dec:11
},
/**
- * <p>The date format string that the {@link #dateRenderer} and {@link #date} functions use.
- * see {@link #Date} for details.</p>
+ * <p>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.</p>
* <p>This defaults to <code>m/d/Y</code>, but may be overridden in a locale file.</p>
* @property defaultFormat
* @static
@@ -454,11 +472,12 @@ Ext.Date.monthNumbers = {
return utilDate.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
},
- /**
+ /**
* 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(){
var stripEscapeRe = /(\\.)/g,
@@ -468,13 +487,14 @@ Ext.Date.monthNumbers = {
};
})(),
- /**
+ /**
* Checks if the specified format contains information about
* anything other than the time.
* @param {String} format The format to check
* @return {Boolean} True if the format contains information about
* date/day information.
* @static
+ * @method
*/
formatContainsDateInfo : (function(){
var stripEscapeRe = /(\\.)/g,
@@ -865,8 +885,8 @@ dt = Ext.Date.parse("2006-02-29 03:20:01", "Y-m-d H:i:s", tr
+ "y = ty > Ext.Date.y2kYear ? 1900 + ty : 2000 + ty;\n", // 2-digit year
s:"(\\d{1,2})"
},
- /**
- * In the am/pm parsing routines, we allow both upper and lower case
+ /*
+ * In the am/pm parsing routines, we allow both upper and lower case
* even though it doesn't exactly match the spec. It gives much more flexibility
* in being able to specify case insensitive regexes.
*/
@@ -1080,11 +1100,12 @@ dt = Ext.Date.parse("2006-02-29 03:20:01", "Y-m-d H:i:s", tr
return num + date.getDate() - 1;
},
- /**
+ /**
* Get the numeric ISO-8601 week number of the year.
* (equivalent to the format specifier 'W', but without a leading zero).
* @param {Date} date The date
* @return {Number} 1 to 53
+ * @method
*/
getWeekOfYear : (function() {
// adapted from http://www.merlyn.demon.co.uk/weekcalc.htm
@@ -1164,10 +1185,11 @@ console.log(Ext.Date.dayNames[lastDay]); //output: 'Wednesday'
return new Date(date.getFullYear(), date.getMonth(), utilDate.getDaysInMonth(date));
},
- /**
+ /**
* Get the number of days in the current month, adjusted for leap year.
* @param {Date} date The date
* @return {Number} The number of days in the month.
+ * @method
*/
getDaysInMonth: (function() {
var daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -1371,4 +1393,6 @@ console.log(dt2); //returns 'Tue Sep 26 2006 00:00:00'
var utilDate = Ext.Date;
})();
-
\ No newline at end of file
+
+
+