/ext-4.0.7/docs/output/Date.js
JavaScript | 1 lines | 1 code | 0 blank | 0 comment | 0 complexity | 7362714bba30c748658d7ac0f49bc832 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
1Ext.data.JsonP.Date({"tagname":"class","html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/Date.html#Date' target='_blank'>Date.js</a></div></pre><div class='doc-contents'><p>Creates <code>Date</code> instances which let you work with dates and times.</p>\n\n<p>If you supply no arguments, the constructor creates a <code>Date</code> object for today's\ndate and time according to local time. If you supply some arguments but not\nothers, the missing arguments are set to 0. If you supply any arguments, you\nmust supply at least the year, month, and day. You can omit the hours, minutes,\nseconds, and milliseconds.</p>\n\n<p>The date is measured in milliseconds since midnight 01 January, 1970 UTC. A day\nholds 86,400,000 milliseconds. The <code>Date</code> object range is -100,000,000 days to\n100,000,000 days relative to 01 January, 1970 UTC.</p>\n\n<p>The <code>Date</code> object provides uniform behavior across platforms.</p>\n\n<p>The <code>Date</code> object supports a number of UTC (universal) methods, as well as\nlocal time methods. UTC, also known as Greenwich Mean Time (GMT), refers to the\ntime as set by the World Time Standard. The local time is the time known to the\ncomputer where JavaScript is executed.</p>\n\n<p>Invoking <code>Date</code> in a non-constructor context (i.e., without the <code>new</code> operator)\nwill return a string representing the current time.</p>\n\n<p>Note that <code>Date</code> objects can only be instantiated by calling <code>Date</code> or using it\nas a constructor; unlike other JavaScript object types, <code>Date</code> objects have no\nliteral syntax.</p>\n\n<h1>Several ways to assign dates</h1>\n\n<p>The following example shows several ways to assign dates:</p>\n\n<pre><code>today = new Date();\nbirthday = new Date(\"December 19, 1989 03:24:00\");\nbirthday = new Date(1989,11,19);\nbirthday = new Date(1989,11,17,3,24,0);\n</code></pre>\n\n<h1>Calculating elapsed time</h1>\n\n<p>The following examples show how to determine the elapsed time between two dates:</p>\n\n<pre><code>// using static methods\nvar start = Date.now();\n// the event you'd like to time goes here:\ndoSomethingForALongTime();\nvar end = Date.now();\nvar elapsed = end - start; // time in milliseconds\n\n// if you have Date objects\nvar start = new Date();\n// the event you'd like to time goes here:\ndoSomethingForALongTime();\nvar end = new Date();\nvar elapsed = end.getTime() - start.getTime(); // time in milliseconds\n\n// if you want to test a function and get back its return\nfunction printElapsedTime (fTest) {\n var nStartTime = Date.now(), vReturn = fTest(), nEndTime = Date.now();\n alert(\"Elapsed time: \" + String(nEndTime - nStartTime) + \"\n milliseconds\");\n return vReturn;\n}\n\nyourFunctionReturn = printElapsedTime(yourFunction);\n</code></pre>\n\n<h1>ISO 8601 formatted dates</h1>\n\n<p>The following example shows how to formate a date in an ISO 8601 format using\nUTC:</p>\n\n<pre><code>// use a function for the exact format desired...\nfunction ISODateString(d){\nfunction pad(n){return n<10 ? '0'+n : n}\nreturn d.getUTCFullYear()+'-'\n + pad(d.getUTCMonth()+1)+'-'\n + pad(d.getUTCDate())+'T'\n + pad(d.getUTCHours())+':'\n + pad(d.getUTCMinutes())+':'\n + pad(d.getUTCSeconds())+'Z'}\n\nvar d = new Date();\nprint(ISODateString(d)); // prints something like 2009-09-28T19:03:12Z\n</code></pre>\n\n<div class=\"notice\">\nDocumentation for this class comes from <a href=\"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date\">MDN</a>\nand is available under <a href=\"http://creativecommons.org/licenses/by-sa/2.0/\">Creative Commons: Attribution-Sharealike license</a>.\n</div>\n\n</div><div class='members'><div id='m-method'><h3 class='members-title'>Methods</h3><div class='subsection'><div class='definedBy'>Defined By</div><h4 class='members-subtitle'>Instance Methods</h3><div id='method-constructor' class='member first-child not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-constructor' target='_blank' class='viewSource'>view source</a></div><strong class='constructor-signature'>new</strong><a href='#!/api/Date-method-constructor' class='name expandable'>Date</a>( <span class='pre'>[<a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a>/<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> year], [<a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> month], [<a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> day], [<a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> hour], [<a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> minute], [<a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> second], [<a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> millisecond]</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></div><div class='description'><div class='short'>Creates new Date object. ...</div><div class='long'><p>Creates new Date object.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>year</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a>/<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'><p>Either UNIX timestamp, date string, or year (when month and day parameters also provided):</p>\n\n<ul>\n<li><p>Integer value representing the number of milliseconds since 1 January 1970\n00:00:00 UTC (Unix Epoch).</p></li>\n<li><p>String value representing a date. The string should be in a format recognized\nby the parse method (IETF-compliant RFC 1123 timestamps).</p></li>\n<li><p>Integer value representing the year. For compatibility (in order to avoid the\nY2K problem), you should always specify the year in full; use 1998, rather\nthan 98.</p></li>\n</ul>\n\n</div></li><li><span class='pre'>month</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> (optional)<div class='sub-desc'><p>Integer value representing the month, beginning with 0 for January to 11\nfor December.</p>\n</div></li><li><span class='pre'>day</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> (optional)<div class='sub-desc'><p>Integer value representing the day of the month (1-31).</p>\n</div></li><li><span class='pre'>hour</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> (optional)<div class='sub-desc'><p>Integer value representing the hour of the day (0-23).</p>\n</div></li><li><span class='pre'>minute</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> (optional)<div class='sub-desc'><p>Integer value representing the minute segment (0-59) of a time reading.</p>\n</div></li><li><span class='pre'>second</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> (optional)<div class='sub-desc'><p>Integer value representing the second segment (0-59) of a time reading.</p>\n</div></li><li><span class='pre'>millisecond</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> (optional)<div class='sub-desc'><p>Integer value representing the millisecond segment (0-999) of a time reading.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-getDate' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getDate' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getDate' class='name expandable'>getDate</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The second statement below assigns the value 25 to the variable <code>day</code>, based on the value of the\n<code>Date</code> object <code>Xmas95</code>.</p>\n\n<pre><code>Xmas95 = new Date(\"December 25, 1995 23:15:00\")\nday = Xmas95.getDate()\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 1 and 31.</p>\n</div></li></ul></div></div></div><div id='method-getDay' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getDay' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getDay' class='name expandable'>getDay</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The value returned by <code>getDay</code> is an integer corresponding to the day of the week: 0 for Sunday, 1\nfor Monday, 2 for Tuesday, and so on.</p>\n\n<p>The second statement below assigns the value 1 to <code>weekday</code>, based on the value of the <code>Date</code>\nobject <code>Xmas95</code>. December 25, 1995, is a Monday.</p>\n\n<pre><code>Xmas95 = new Date(\"December 25, 1995 23:15:00\");\nweekday = Xmas95.getDay();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>A numeric representation of the day from Sunday (0) to\nSaturday (6).</p>\n</div></li></ul></div></div></div><div id='method-getFullYear' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getFullYear' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getFullYear' class='name expandable'>getFullYear</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The value returned by <code>getFullYear</code> is an absolute number. For dates between the years 1000 and\n9999, <code>getFullYear</code> returns a four-digit number, for example, 1995. Use this function to make sure\na year is compliant with years after 2000.</p>\n\n<p>Use this method instead of the <code>getYear</code> method.</p>\n\n<p>The following example assigns the four-digit value of the current year to the variable yr.</p>\n\n<pre><code>var today = new Date();\nvar yr = today.getFullYear();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Four digit representation of the year.</p>\n</div></li></ul></div></div></div><div id='method-getHours' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getHours' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getHours' class='name expandable'>getHours</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The second statement below assigns the value 23 to the variable <code>hours</code>, based on the value of the\n<code>Date</code> object <code>Xmas95</code>.</p>\n\n<pre><code>Xmas95 = new Date(\"December 25, 1995 23:15:00\")\nhours = Xmas95.getHours()\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 0 and 23, using 24-hour clock.</p>\n</div></li></ul></div></div></div><div id='method-getMilliseconds' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getMilliseconds' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getMilliseconds' class='name expandable'>getMilliseconds</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the milliseconds portion of the current time to the variable ms.</p>\n\n<pre><code>var ms;\nToday = new Date();\nms = Today.getMilliseconds();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>A number between 0 and 999.</p>\n</div></li></ul></div></div></div><div id='method-getMinutes' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getMinutes' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getMinutes' class='name expandable'>getMinutes</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The second statement below assigns the value 15 to the variable <code>minutes</code>, based on the value of\nthe <code>Date</code> object <code>Xmas95</code>.</p>\n\n<pre><code>Xmas95 = new Date(\"December 25, 1995 23:15:00\")\nminutes = Xmas95.getMinutes()\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 0 and 59.</p>\n</div></li></ul></div></div></div><div id='method-getMonth' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getMonth' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getMonth' class='name expandable'>getMonth</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The second statement below assigns the value 11 to the variable <code>month</code>, based on the value of the\n<code>Date</code> object <code>Xmas95</code>.</p>\n\n<pre><code>Xmas95 = new Date(\"December 25, 1995 23:15:00\")\nmonth = Xmas95.getMonth()\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>An integer between 0 and 11. 0 corresponds to January, 1 to February, and so on.</p>\n</div></li></ul></div></div></div><div id='method-getSeconds' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getSeconds' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getSeconds' class='name expandable'>getSeconds</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The second statement below assigns the value 30 to the variable <code>secs</code>, based on the value of the\n<code>Date</code> object <code>Xmas95</code>.</p>\n\n<pre><code>Xmas95 = new Date(\"December 25, 1995 23:15:30\")\nsecs = Xmas95.getSeconds()\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 0 and 59.</p>\n</div></li></ul></div></div></div><div id='method-getTime' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getTime' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getTime' class='name expandable'>getTime</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The value returned by the <code>getTime</code> method is the number of milliseconds since 1 January 1970\n00:00:00 UTC. You can use this method to help assign a date and time to another <code>Date</code> object.</p>\n\n<p>This method is functionally equivalent to the <code>valueOf</code> method.</p>\n\n<p>Using getTime for copying dates</p>\n\n<p>Constructing a date object with the identical time value.</p>\n\n<pre><code>var birthday = new Date(1994, 12, 10);\nvar copy = new Date();\ncopy.setTime(birthday.getTime());\n</code></pre>\n\n<p>Measuring execution time</p>\n\n<p>Subtracting two subsequent getTime calls on newly generated Date objects, give the time span\nbetween these two calls. This can be used to calculate the executing time of some operations.</p>\n\n<pre><code>var end, start;\n\nstart = new Date();\nfor (var i = 0; i < 1000; i++)\n Math.sqrt(i);\nend = new Date();\n\nconsole.log(\"Operation took \" + (end.getTime() - start.getTime()) + \" msec\");\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Number of milliseconds since 1/1/1970 (GMT).</p>\n</div></li></ul></div></div></div><div id='method-getTimezoneOffset' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getTimezoneOffset' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getTimezoneOffset' class='name expandable'>getTimezoneOffset</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The time-zone offset is the difference, in minutes, between UTC and local time. Note that this\nmeans that the offset is positive if the local timezone is behind UTC and negative if it is ahead.\nFor example, if your time zone is UTC+10 (Australian Eastern Standard Time), -600 will be returned.\nDaylight savings time prevents this value from being a constant even for a given locale</p>\n\n<pre><code>x = new Date()\ncurrentTimeZoneOffsetInHours = x.getTimezoneOffset()/60\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Minutes between GMT and local time.</p>\n</div></li></ul></div></div></div><div id='method-getUTCDate' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCDate' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCDate' class='name expandable'>getUTCDate</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the day portion of the current date to the variable <code>d</code>.</p>\n\n<pre><code>var d;\nToday = new Date();\nd = Today.getUTCDate();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Integer between 1 and 31 representing the day.</p>\n</div></li></ul></div></div></div><div id='method-getUTCDay' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCDay' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCDay' class='name expandable'>getUTCDay</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the weekday portion of the current date to the variable <code>weekday</code>.</p>\n\n<pre><code>var weekday;\nToday = new Date()\nweekday = Today.getUTCDay()\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>A numeric representation of the day from Sunday (0) to\nSaturday (6).</p>\n</div></li></ul></div></div></div><div id='method-getUTCFullYear' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCFullYear' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCFullYear' class='name expandable'>getUTCFullYear</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the four-digit value of the current year to the variable <code>yr</code>.</p>\n\n<pre><code>var yr;\nToday = new Date();\nyr = Today.getUTCFullYear();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Four digit representation of the year.</p>\n</div></li></ul></div></div></div><div id='method-getUTCHours' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCHours' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCHours' class='name expandable'>getUTCHours</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the hours portion of the current time to the variable <code>hrs</code>.</p>\n\n<pre><code>var hrs;\nToday = new Date();\nhrs = Today.getUTCHours();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 0 and 23.</p>\n</div></li></ul></div></div></div><div id='method-getUTCMilliseconds' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCMilliseconds' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCMilliseconds' class='name expandable'>getUTCMilliseconds</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the milliseconds portion of the current time to the variable <code>ms</code>.</p>\n\n<pre><code>var ms;\nToday = new Date();\nms = Today.getUTCMilliseconds();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Milliseconds portion of the Date.</p>\n</div></li></ul></div></div></div><div id='method-getUTCMinutes' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCMinutes' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCMinutes' class='name expandable'>getUTCMinutes</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the minutes portion of the current time to the variable <code>min</code>.</p>\n\n<pre><code>var min;\nToday = new Date();\nmin = Today.getUTCMinutes();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 0 and 59.</p>\n</div></li></ul></div></div></div><div id='method-getUTCMonth' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCMonth' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCMonth' class='name expandable'>getUTCMonth</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the month portion of the current date to the variable <code>mon</code>.</p>\n\n<pre><code>var mon;\nToday = new Date();\nmon = Today.getUTCMonth();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 0 (January) and 11 (December).</p>\n</div></li></ul></div></div></div><div id='method-getUTCSeconds' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-getUTCSeconds' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-getUTCSeconds' class='name expandable'>getUTCSeconds</a>( <span class='pre'></span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the numeric value corresponding to the current time. ...</div><div class='long'><p>Returns the numeric value corresponding to the current time.</p>\n\n<p>The following example assigns the seconds portion of the current time to the variable <code>sec</code>.</p>\n\n<pre><code>var sec;\nToday = new Date();\nsec = Today.getUTCSeconds();\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>Value between 0 and 59.</p>\n</div></li></ul></div></div></div><div id='method-setDate' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setDate' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setDate' class='name expandable'>setDate</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> dayValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the day of the month (1-31) for a specified date according to local time. ...</div><div class='long'><p>Sets the day of the month (1-31) for a specified date according to local time.</p>\n\n<p>If the parameter you specify is outside of the expected range, <code>setDate</code> attempts to update the\ndate information in the <code>Date</code> object accordingly. For example, if you use 0 for <code>dayValue</code>, the\ndate will be set to the last day of the previous month.</p>\n\n<p>The second statement below changes the day for theBigDay to July 24 from its original value.</p>\n\n<pre><code>theBigDay = new Date(\"July 27, 1962 23:30:00\")\ntheBigDay.setDate(24)\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>dayValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer from 1 to 31, representing the day of the month.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setFullYear' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setFullYear' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setFullYear' class='name expandable'>setFullYear</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> yearValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> monthValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> dayValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the full year (4 digits for 4-digit years) for a specified date according to\nlocal time. ...</div><div class='long'><p>Sets the full year (4 digits for 4-digit years) for a specified date according to\nlocal time.</p>\n\n<p>If you do not specify the <code>monthValue</code> and <code>dayValue</code> parameters, the values returned from the\n<code>getMonth</code> and <code>getDate</code> methods are used.</p>\n\n<p>If a parameter you specify is outside of the expected range, <code>setFullYear</code> attempts to update the\nother parameters and the date information in the <code>Date</code> object accordingly. For example, if you\nspecify 15 for monthValue, the year is incremented by 1 (year + 1), and 3 is used for the month.</p>\n\n<p>theBigDay = new Date();\ntheBigDay.setFullYear(1997);</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>yearValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer specifying the numeric value of the year, for example, 1995.</p>\n</div></li><li><span class='pre'>monthValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 11 representing the months January through\nDecember.</p>\n</div></li><li><span class='pre'>dayValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 1 and 31 representing the day of the month. If you\nspecify the <code>dayValue</code> parameter, you must also specify the <code>monthValue</code>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setHours' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setHours' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setHours' class='name expandable'>setHours</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> hoursValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> minutesValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> secondsValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> msValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the hours (0-23) for a specified date according to local time. ...</div><div class='long'><p>Sets the hours (0-23) for a specified date according to local time.</p>\n\n<p>If you do not specify the <code>minutesValue</code>, <code>secondsValue</code>, and <code>msValue</code> parameters, the values\nreturned from the <code>getUTCMinutes</code>, <code>getUTCSeconds</code>, and <code>getMilliseconds</code> methods are used.</p>\n\n<p>If a parameter you specify is outside of the expected range, setHours attempts to update the date\ninformation in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the\nminutes will be incremented by 1 (min + 1), and 40 will be used for seconds.</p>\n\n<pre><code>theBigDay.setHours(7)\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>hoursValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 23, representing the hour.</p>\n</div></li><li><span class='pre'>minutesValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 59, representing the minutes.</p>\n</div></li><li><span class='pre'>secondsValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 59, representing the seconds. If you specify the\n<code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>.</p>\n</div></li><li><span class='pre'>msValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>A number between 0 and 999, representing the milliseconds. If you specify the\n<code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setMilliseconds' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setMilliseconds' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setMilliseconds' class='name expandable'>setMilliseconds</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> millisecondsValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the milliseconds (0-999) for a specified date according to local time. ...</div><div class='long'><p>Sets the milliseconds (0-999) for a specified date according to local time.</p>\n\n<p>If you specify a number outside the expected range, the date information in the <code>Date</code> object is\nupdated accordingly. For example, if you specify 1005, the number of seconds is incremented by 1,\nand 5 is used for the milliseconds.</p>\n\n<pre><code>theBigDay = new Date();\ntheBigDay.setMilliseconds(100);\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>millisecondsValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>A number between 0 and 999, representing the milliseconds.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setMinutes' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setMinutes' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setMinutes' class='name expandable'>setMinutes</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> minutesValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> secondsValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> msValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the minutes (0-59) for a specified date according to local time. ...</div><div class='long'><p>Sets the minutes (0-59) for a specified date according to local time.</p>\n\n<p>If you do not specify the <code>secondsValue</code> and <code>msValue</code> parameters, the values returned from\n<code>getSeconds</code> and <code>getMilliseconds</code> methods are used.</p>\n\n<p>If a parameter you specify is outside of the expected range, <code>setMinutes</code> attempts to update the\ndate information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>,\nthe minutes (<code>minutesValue</code>) will be incremented by 1 (minutesValue + 1), and 40 will be used for\nseconds.</p>\n\n<pre><code>theBigDay.setMinutes(45)\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>minutesValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 59, representing the minutes.</p>\n</div></li><li><span class='pre'>secondsValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 59, representing the seconds. If you\nspecify the secondsValue parameter, you must also specify the <code>minutesValue</code>.</p>\n</div></li><li><span class='pre'>msValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>A number between 0 and 999, representing the milliseconds. If you specify\nthe <code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setMonth' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setMonth' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setMonth' class='name expandable'>setMonth</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> monthValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> dayValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the month (0-11) for a specified date according to local time. ...</div><div class='long'><p>Sets the month (0-11) for a specified date according to local time.</p>\n\n<p>If you do not specify the <code>dayValue</code> parameter, the value returned from the <code>getDate</code> method is\nused.</p>\n\n<p>If a parameter you specify is outside of the expected range, <code>setMonth</code> attempts to update the date\ninformation in the <code>Date</code> object accordingly. For example, if you use 15 for <code>monthValue</code>, the year\nwill be incremented by 1 (year + 1), and 3 will be used for month.</p>\n\n<pre><code>theBigDay.setMonth(6)\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>monthValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 11 (representing the months January through\nDecember).</p>\n</div></li><li><span class='pre'>dayValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer from 1 to 31, representing the day of the month.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setSeconds' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setSeconds' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setSeconds' class='name expandable'>setSeconds</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> secondsValue, <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> msValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the seconds (0-59) for a specified date according to local time. ...</div><div class='long'><p>Sets the seconds (0-59) for a specified date according to local time.</p>\n\n<p>If you do not specify the <code>msValue</code> parameter, the value returned from the <code>getMilliseconds</code> method\nis used.</p>\n\n<p>If a parameter you specify is outside of the expected range, <code>setSeconds</code> attempts to update the\ndate information in the <code>Date</code> object accordingly. For example, if you use 100 for <code>secondsValue</code>,\nthe minutes stored in the <code>Date</code> object will be incremented by 1, and 40 will be used for seconds.</p>\n\n<pre><code>theBigDay.setSeconds(30)\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>secondsValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer between 0 and 59.</p>\n</div></li><li><span class='pre'>msValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>A number between 0 and 999, representing the milliseconds. If you specify\nthe<code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setTime' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setTime' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setTime' class='name expandable'>setTime</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> timeValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the Date object to the time represented by a number of milliseconds since\nJanuary 1, 1970, 00:00:00 UTC, allowin...</div><div class='long'><p>Sets the Date object to the time represented by a number of milliseconds since\nJanuary 1, 1970, 00:00:00 UTC, allowing for negative numbers for times prior.</p>\n\n<p>Use the <code>setTime</code> method to help assign a date and time to another <code>Date</code> object.</p>\n\n<pre><code>theBigDay = new Date(\"July 1, 1999\")\nsameAsBigDay = new Date()\nsameAsBigDay.setTime(theBigDay.getTime())\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>timeValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>An integer representing the number of milliseconds since 1 January\n1970, 00:00:00 UTC.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>New date represented as milliseconds.</p>\n</div></li></ul></div></div></div><div id='method-setUTCDate' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Date' rel='Date' class='definedIn docClass'>Date</a><br/><a href='source/Date.html#Date-method-setUTCDate' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Date-method-setUTCDate' class='name expandable'>setUTCDate</a>( <span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> dayValue</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Sets the day of the month (1-31) for a specified date according to universal time. ...</div><div class='long'><p>Sets the day of the month (1-31) for a specified date according to universal time.</p>\n\n<p>If a parameter you specify is outside of the expected range, <code>setUTCDate</code> attempts to update the\ndate information in the <code>Date</code> object accordingly. For example, if you use 40 for <code>dayValue</code>, and\nthe month stored in the <code>Date</code> object is June, the day will be changed to 10 and the month will be\nincremented to July.</p>\n\n<pre><code>theBigDay = new Date();\ntheBigDay.setUTCDate(20);\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>dayValue</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClas…
Large files files are truncated, but you can click here to view the full file