upgraded to yui 0.12.0
upgraded to yui-ext 0.33 rc2
This commit is contained in:
parent
62b3d90db7
commit
cfd09a5cb6
1271 changed files with 539033 additions and 0 deletions
469
www/extras/yui-ext/docs/output/YAHOO.widget.DateMath.html
Normal file
469
www/extras/yui-ext/docs/output/YAHOO.widget.DateMath.html
Normal file
|
|
@ -0,0 +1,469 @@
|
|||
<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>YAHOO.widget.DateMath</title>
|
||||
<link rel="stylesheet" type="text/css" href="../resources/reset.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/>
|
||||
<link rel="stylesheet" type="text/css" href="../resources/print.css" media="print">
|
||||
</head>
|
||||
<body>
|
||||
<div class="body-wrap">
|
||||
<div class="top-tools"><img src="../resources/print.gif" width="16" height="16" align="absmiddle"> <a href="YAHOO.widget.DateMath.html" target="_blank">Print Friendly</a></div>
|
||||
<h1>Class YAHOO.widget.DateMath</h1>
|
||||
<table cellspacing="0">
|
||||
<tr><td class="label">Package:</td><td>YAHOO.widget</td></tr>
|
||||
<tr><td class="label">Class:</td><td>DateMath</td></tr>
|
||||
<tr><td class="label">Extends:</td><td>Object</td></tr>
|
||||
<tr><td class="label">Defined In:</td><td><a href="calendar.js.html">calendar.js</a></td></tr>
|
||||
</table>
|
||||
<div class="description">
|
||||
YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
|
||||
used for adding, subtracting, and comparing dates. </div>
|
||||
<hr />
|
||||
<a name="properties"></a>
|
||||
<h2>Public Properties</h2>
|
||||
<table cellspacing="0" class="member-table">
|
||||
<tr>
|
||||
<th class="sig-header" colspan="2">Property</th>
|
||||
<th class="msource-header">Defined By</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#DAY">DAY</a> : String</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc"><static> Constant field representing Day</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#MONTH">MONTH</a> : String</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc"><static> Constant field representing Month</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#ONE_DAY_MS">ONE_DAY_MS</a> : Number</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc"><static> Constant field representing one day, in milliseconds</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#WEEK">WEEK</a> : String</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc"><static> Constant field representing Week</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#YEAR">YEAR</a> : String</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc"><static> Constant field representing Year</td>
|
||||
</tr>
|
||||
</table>
|
||||
<a name="methods"></a>
|
||||
<h2>Public Methods</h2>
|
||||
<table cellspacing="0" class="member-table">
|
||||
<tr>
|
||||
<th class="sig-header" colspan="2">Method</th>
|
||||
<th class="msource-header">Defined By</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#add">add</a>(<code>Date date</code>, <code>String field</code>, <code>Number amount</code>) : Date</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc">Adds the specified amount of time to the this instance.</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#after">after</a>(<code>Date date</code>, <code>Date compareTo</code>) : Boolean</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc">Determines whether a given date is after another date on the calendar.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#before">before</a>(<code>Date date</code>, <code>Date compareTo</code>) : Boolean</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc">Determines whether a given date is before another date on the calendar.</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#between">between</a>(<code>Date date</code>, <code>Date dateBegin</code>, <code>Date dateEnd</code>) : Boolean</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc">Determines whether a given date is between two other dates on the calendar.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#clearTime">clearTime</a>(<code>Date date</code>) : Date</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc">Clears the time fields from a given date, effectively setting the time to midnight.</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#findMonthEnd">findMonthEnd</a>(<code>Date date</code>) : Date</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc">Gets the last day of a month containing a given date.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#findMonthStart">findMonthStart</a>(<code>Date date</code>) : Date</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc">Gets the first day of a month containing a given date.</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#getDayOffset">getDayOffset</a>(<code>Date date</code>, <code>Number calendarYear</code>) : Number</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc">Calculates the number of days the specified date is from January 1 of the specified calendar year.
|
||||
Passing January 1 ...</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#getJan1">getJan1</a>(<code>Number calendarYear</code>) : Date</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc">Retrieves a JavaScript Date object representing January 1 of any given year.</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#getWeekNumber">getWeekNumber</a>(<code>Date date</code>, <code>Number calendarYear</code>, <code>Number weekStartsOn</code>) : Number</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc">Calculates the week number for the given date. This function assumes that week 1 is the
|
||||
week in which January 1 appea...</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#isMonthOverlapWeek">isMonthOverlapWeek</a>(<code>Date weekBeginDate</code>) : Boolean</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc">Determines if a given week overlaps two different months.</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#isYearOverlapWeek">isYearOverlapWeek</a>(<code>Date weekBeginDate</code>) : Boolean</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr class="alt">
|
||||
<td class="mdesc">Determines if a given week overlaps two different years.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="micon" rowspan="2"> </td>
|
||||
<td class="sig"><a class="mlink" href="#subtract">subtract</a>(<code>Date date</code>, <code>Number field</code>, <code>Number amount</code>) : Date</td>
|
||||
<td class="msource" rowspan="2">DateMath</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mdesc">Subtracts the specified amount of time from the this instance.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<a name="events"></a>
|
||||
<h2>Public Events</h2>
|
||||
<div class="no-members">This class has no public events.</div>
|
||||
<h2 class="mdetail-head">Property Details</h2>
|
||||
<div class="detail-wrap">
|
||||
<a name="DAY"></a>
|
||||
<div class="mdetail">
|
||||
<h3>DAY</i></h3>
|
||||
<code>public String DAY</code>
|
||||
<div class="mdetail-desc">
|
||||
<static> Constant field representing Day </div>
|
||||
<div class="mdetail-def">This property is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="MONTH"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>MONTH</i></h3>
|
||||
<code>public String MONTH</code>
|
||||
<div class="mdetail-desc">
|
||||
<static> Constant field representing Month </div>
|
||||
<div class="mdetail-def">This property is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="ONE_DAY_MS"></a>
|
||||
<div class="mdetail">
|
||||
<h3>ONE_DAY_MS</i></h3>
|
||||
<code>public Number ONE_DAY_MS</code>
|
||||
<div class="mdetail-desc">
|
||||
<static> Constant field representing one day, in milliseconds </div>
|
||||
<div class="mdetail-def">This property is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="WEEK"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>WEEK</i></h3>
|
||||
<code>public String WEEK</code>
|
||||
<div class="mdetail-desc">
|
||||
<static> Constant field representing Week </div>
|
||||
<div class="mdetail-def">This property is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="YEAR"></a>
|
||||
<div class="mdetail">
|
||||
<h3>YEAR</i></h3>
|
||||
<code>public String YEAR</code>
|
||||
<div class="mdetail-desc">
|
||||
<static> Constant field representing Year </div>
|
||||
<div class="mdetail-def">This property is defined by DateMath.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h2 class="mdetail-head">Method Details</h2>
|
||||
<div class="detail-wrap">
|
||||
<a name="add"></a>
|
||||
<div class="mdetail">
|
||||
<h3>add</i></h3>
|
||||
<code>public function add(<code>Date date</code>, <code>String field</code>, <code>Number amount</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Adds the specified amount of time to the this instance.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The JavaScript Date object to perform addition on</div></li><li><code>field</code> : String<div class="sub-desc">The field constant to be used for performing addition.</div></li><li><code>amount</code> : Number<div class="sub-desc">The number of units (measured in the field constant) to add to the date.</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Date</code><div class="sub-desc">The resulting Date object</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="after"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>after</i></h3>
|
||||
<code>public function after(<code>Date date</code>, <code>Date compareTo</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Determines whether a given date is after another date on the calendar.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The Date object to compare with the compare argument</div></li><li><code>compareTo</code> : Date<div class="sub-desc">The Date object to use for the comparison</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Boolean</code><div class="sub-desc">true if the date occurs after the compared date; false if not.</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="before"></a>
|
||||
<div class="mdetail">
|
||||
<h3>before</i></h3>
|
||||
<code>public function before(<code>Date date</code>, <code>Date compareTo</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Determines whether a given date is before another date on the calendar.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The Date object to compare with the compare argument</div></li><li><code>compareTo</code> : Date<div class="sub-desc">The Date object to use for the comparison</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Boolean</code><div class="sub-desc">true if the date occurs before the compared date; false if not.</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="between"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>between</i></h3>
|
||||
<code>public function between(<code>Date date</code>, <code>Date dateBegin</code>, <code>Date dateEnd</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Determines whether a given date is between two other dates on the calendar.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The date to check for</div></li><li><code>dateBegin</code> : Date<div class="sub-desc">The start of the range</div></li><li><code>dateEnd</code> : Date<div class="sub-desc">The end of the range</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Boolean</code><div class="sub-desc">true if the date occurs between the compared dates; false if not.</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="clearTime"></a>
|
||||
<div class="mdetail">
|
||||
<h3>clearTime</i></h3>
|
||||
<code>public function clearTime(<code>Date date</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Clears the time fields from a given date, effectively setting the time to midnight.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The JavaScript Date for which the time fields will be cleared</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Date</code><div class="sub-desc">The JavaScript Date cleared of all time fields</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="findMonthEnd"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>findMonthEnd</i></h3>
|
||||
<code>public function findMonthEnd(<code>Date date</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Gets the last day of a month containing a given date.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The JavaScript Date used to calculate the month end</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Date</code><div class="sub-desc">The JavaScript Date representing the last day of the month</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="findMonthStart"></a>
|
||||
<div class="mdetail">
|
||||
<h3>findMonthStart</i></h3>
|
||||
<code>public function findMonthStart(<code>Date date</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Gets the first day of a month containing a given date.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The JavaScript Date used to calculate the month start</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Date</code><div class="sub-desc">The JavaScript Date representing the first day of the month</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="getDayOffset"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>getDayOffset</i></h3>
|
||||
<code>public function getDayOffset(<code>Date date</code>, <code>Number calendarYear</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Calculates the number of days the specified date is from January 1 of the specified calendar year.
|
||||
Passing January 1 to this function would return an offset value of zero.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The JavaScript date for which to find the offset</div></li><li><code>calendarYear</code> : Number<div class="sub-desc">The calendar year to use for determining the offset</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Number</code><div class="sub-desc">The number of days since January 1 of the given year</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="getJan1"></a>
|
||||
<div class="mdetail">
|
||||
<h3>getJan1</i></h3>
|
||||
<code>public function getJan1(<code>Number calendarYear</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Retrieves a JavaScript Date object representing January 1 of any given year.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>calendarYear</code> : Number<div class="sub-desc">The calendar year for which to retrieve January 1</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Date</code><div class="sub-desc">January 1 of the calendar year specified.</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="getWeekNumber"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>getWeekNumber</i></h3>
|
||||
<code>public function getWeekNumber(<code>Date date</code>, <code>Number calendarYear</code>, <code>Number weekStartsOn</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Calculates the week number for the given date. This function assumes that week 1 is the
|
||||
week in which January 1 appears, regardless of whether the week consists of a full 7 days.
|
||||
The calendar year can be specified to help find what a the week number would be for a given
|
||||
date if the date overlaps years. For instance, a week may be considered week 1 of 2005, or
|
||||
week 53 of 2004. Specifying the optional calendarYear allows one to make this distinction
|
||||
easily.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The JavaScript date for which to find the week number</div></li><li><code>calendarYear</code> : Number<div class="sub-desc">OPTIONAL - The calendar year to use for determining the week number. Default is the calendar year of parameter "date".</div></li><li><code>weekStartsOn</code> : Number<div class="sub-desc">OPTIONAL - The integer (0-6) representing which day a week begins on. Default is 0 (for Sunday).</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Number</code><div class="sub-desc">The week number of the given date.</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="isMonthOverlapWeek"></a>
|
||||
<div class="mdetail">
|
||||
<h3>isMonthOverlapWeek</i></h3>
|
||||
<code>public function isMonthOverlapWeek(<code>Date weekBeginDate</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Determines if a given week overlaps two different months.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>weekBeginDate</code> : Date<div class="sub-desc">The JavaScript Date representing the first day of the week.</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Boolean</code><div class="sub-desc">true if the date overlaps two different months.</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="isYearOverlapWeek"></a>
|
||||
<div class="mdetail alt">
|
||||
<h3>isYearOverlapWeek</i></h3>
|
||||
<code>public function isYearOverlapWeek(<code>Date weekBeginDate</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Determines if a given week overlaps two different years.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>weekBeginDate</code> : Date<div class="sub-desc">The JavaScript Date representing the first day of the week.</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Boolean</code><div class="sub-desc">true if the date overlaps two different years.</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
<a name="subtract"></a>
|
||||
<div class="mdetail">
|
||||
<h3>subtract</i></h3>
|
||||
<code>public function subtract(<code>Date date</code>, <code>Number field</code>, <code>Number amount</code>)</code>
|
||||
<div class="mdetail-desc">
|
||||
Subtracts the specified amount of time from the this instance.
|
||||
<div class="mdetail-params">
|
||||
<strong>Parameters:</strong>
|
||||
<ul><li><code>date</code> : Date<div class="sub-desc">The JavaScript Date object to perform subtraction on</div></li><li><code>field</code> : Number<div class="sub-desc">The this field constant to be used for performing subtraction.</div></li><li><code>amount</code> : Number<div class="sub-desc">The number of units (measured in the field constant) to subtract from the date.</div></li> </ul>
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li><code>Date</code><div class="sub-desc">The resulting Date object</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdetail-def">This method is defined by DateMath.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
Copyright © 2006 Jack Slocum. All rights reserved.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue