sync
[roojs1] / docs / symbols / Date.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
6         <head>
7                 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8                 <meta name="generator" content="JsDoc Toolkit" />
9                 
10                 
11                 <title>JsDoc Reference - Date</title>
12                 
13                 
14         <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />            
15         <link rel="stylesheet" type="text/css" href="../default.css" />
16         
17         
18         <script type="text/javascript" src="../page.js">
19         
20         </script>
21          
22                 
23         </head>
24
25         <body onload="RooDocsPage.onload();">
26          
27         
28 <div class="body-wrap">
29
30     <!-- ============================== links to methods. ================================= --> 
31
32     <div class="top-tools">
33     <!--
34         <a class="inner-link" href="#Date-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35         <a class="inner-link" href="#Date-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36         <a class="inner-link" href="#Date-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37         <a class="inner-link" href="#Date-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38         <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
39         -->
40     </div>
41
42     
43 <!-- ============================== inheritance Block. ================================= -->    
44         
45 <!-- ============================== class title / details ============================ -->
46     
47     
48     <h1 class="classTitle">
49                                 
50                                 Built-In Class Date
51                         </h1>
52                         
53     <table cellspacing="0" class="class-summary-table">
54         
55         <tr><td class="label">Defined In:</td><td class="hd-info">
56                         
57                                         <a href="./src/Date.js.html">Date.js</a>.
58                         
59         </td></tr>
60         <tr><td class="label">Class:</td><td class="hd-info">Date</td></tr>
61         
62         
63         
64         
65     </table>
66
67     
68 <!-- ============================== class summary ========================== -->                        
69     <div class="description">
70         The date parsing and format syntax is a subset of<br/><a href="http://www.php.net/date">PHP's date() function</a>, and the formats that are<br/>supported will provide results equivalent to their PHP versions.<br/><br/>Following is the list of all currently supported formats:<br/><pre><br/>Sample date:<br/>'Wed Jan 10 2007 15:05:01 GMT-0600 (Central Standard Time)'<br/><br/>Format  Output      Description<br/>------  ----------  --------------------------------------------------------------<br/>  d      10         Day of the month, 2 digits with leading zeros<br/>  D      Wed        A textual representation of a day, three letters<br/>  j      10         Day of the month without leading zeros<br/>  l      Wednesday  A full textual representation of the day of the week<br/>  S      th         English ordinal day of month suffix, 2 chars (use with j)<br/>  w      3          Numeric representation of the day of the week<br/>  z      9          The julian date, or day of the year (0-365)<br/>  W      01         ISO-8601 2-digit week number of year, weeks starting on Monday (00-52)<br/>  F      January    A full textual representation of the month<br/>  m      01         Numeric representation of a month, with leading zeros<br/>  M      Jan        Month name abbreviation, three letters<br/>  n      1          Numeric representation of a month, without leading zeros<br/>  t      31         Number of days in the given month<br/>  L      0          Whether it's a leap year (1 if it is a leap year, else 0)<br/>  Y      2007       A full numeric representation of a year, 4 digits<br/>  y      07         A two digit representation of a year<br/>  a      pm         Lowercase Ante meridiem and Post meridiem<br/>  A      PM         Uppercase Ante meridiem and Post meridiem<br/>  g      3          12-hour format of an hour without leading zeros<br/>  G      15         24-hour format of an hour without leading zeros<br/>  h      03         12-hour format of an hour with leading zeros<br/>  H      15         24-hour format of an hour with leading zeros<br/>  i      05         Minutes with leading zeros<br/>  s      01         Seconds, with leading zeros<br/>  O      -0600      Difference to Greenwich time (GMT) in hours<br/>  T      CST        Timezone setting of the machine running the code<br/>  Z      -21600     Timezone offset in seconds (negative if west of UTC, positive if east)<br/></pre><br/><br/>Example usage (note that you must escape format specifiers with '\\' to render them as character literals):<br/><pre><code><br/>var dt = new Date('1/10/2007 03:05:01 PM GMT-0600');<br/>document.write(dt.format('Y-m-d'));                         //2007-01-10<br/>document.write(dt.format('F j, Y, g:i a'));                 //January 10, 2007, 3:05 pm<br/>document.write(dt.format('l, \\t\\he dS of F Y h:i:s A'));  //Wednesday, the 10th of January 2007 03:05:01 PM<br/> </code></pre><br/><br/>Here are some standard date/time patterns that you might find helpful.  They<br/>are not part of the source of Date.js, but to use them you can simply copy this<br/>block of code into any script that is included after Date.js and they will also become<br/>globally available on the Date object.  Feel free to add or remove patterns as needed in your code.<br/><pre><code><br/>Date.patterns = {<br/>    ISO8601Long:"Y-m-d H:i:s",<br/>    ISO8601Short:"Y-m-d",<br/>    ShortDate: "n/j/Y",<br/>    LongDate: "l, F d, Y",<br/>    FullDateTime: "l, F d, Y g:i:s A",<br/>    MonthDay: "F d",<br/>    ShortTime: "g:i A",<br/>    LongTime: "g:i:s A",<br/>    SortableDateTime: "Y-m-d\\TH:i:s",<br/>    UniversalSortableDateTime: "Y-m-d H:i:sO",<br/>    YearMonth: "F, Y"<br/>};<br/></code></pre><br/><br/>Example usage:<br/><pre><code><br/>var dt = new Date();<br/>document.write(dt.format(Date.patterns.ShortDate));<br/> </code></pre>
71     </div>
72
73         
74 <!-- ============================== Class comment block... ========================== -->                                       
75
76 <div class="comments">
77         <b>Class Comments / Notes</B> =>  
78         <u onclick="parent.CommentDialog.showCommentId = 'Date';">[Add Your comment/notes about this class]</u>
79         <br/>
80         <iframe frameborder="0"  id="comments-" style="border: none;width:100%;" 
81                 src="/blog.php/GtkDjsComments/Date.html"></iframe>
82 </div>
83         
84
85                 
86 <!-- ============================== config options ========================== -->                                               
87                  
88     
89     
90                 
91     <div class="hr"></div>
92     <a id="Date-configs"></a>
93                 
94     
95     
96      <table cellspacing="0" class="member-table">
97       <caption class="Empty">Config Options - Has None</caption>
98      </table>
99     
100     
101      
102                 
103   
104   
105   
106   
107   
108   
109   
110   
111   <!-- ============================== public properties ==================== -->        
112   
113   
114   
115     <a id="Date-props"></a>      
116     
117     
118
119     
120      
121     
122         
123       <table cellspacing="0" class="member-table">   
124       <caption>Public Properties </caption>
125         <tr>
126             <th class="sig-header" colspan="2">Property</th>
127             <th class="sig-header">Description</th>
128             <th class="msource-header">Defined By</th>
129         </tr>
130         
131       
132                     
133           
134                  
135          
136         
137         
138           <tr class="property-row config-row-alt0 notInherited">
139             <td class="micon">
140                 <a class="exi" href="#expand">&nbsp;</a>
141             </td>
142             <td class="sig">
143                <a id="Date-prop-DAY" name=".DAY"></a>
144                <div class="fixedFont">
145                     <span class="attributes">Date.</span><b  class="itemname">DAY</b> :
146                      <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
147                      </div>
148             </td>
149             <td class="sig">
150                 <div class="mdesc">
151
152
153                    <div class="short">
154                         Date interval constant
155                    
156                    
157                    
158                    </div> 
159                     
160                     <div class="long">
161                     
162                         Date interval constant                        
163                  
164                 </div>
165                 </div>
166             </td>
167             
168             <td class="msource">  
169             Date
170             </td>             
171                 
172           </tr>
173                  
174          
175         
176         
177           <tr class="property-row config-row-alt1 notInherited">
178             <td class="micon">
179                 <a class="exi" href="#expand">&nbsp;</a>
180             </td>
181             <td class="sig">
182                <a id="Date-prop-HOUR" name=".HOUR"></a>
183                <div class="fixedFont">
184                     <span class="attributes">Date.</span><b  class="itemname">HOUR</b> :
185                      <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
186                      </div>
187             </td>
188             <td class="sig">
189                 <div class="mdesc">
190
191
192                    <div class="short">
193                         Date interval constant
194                    
195                    
196                    
197                    </div> 
198                     
199                     <div class="long">
200                     
201                         Date interval constant                        
202                  
203                 </div>
204                 </div>
205             </td>
206             
207             <td class="msource">  
208             Date
209             </td>             
210                 
211           </tr>
212                  
213          
214         
215         
216           <tr class="property-row config-row-alt0 notInherited">
217             <td class="micon">
218                 <a class="exi" href="#expand">&nbsp;</a>
219             </td>
220             <td class="sig">
221                <a id="Date-prop-MILLI" name=".MILLI"></a>
222                <div class="fixedFont">
223                     <span class="attributes">Date.</span><b  class="itemname">MILLI</b> :
224                      <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
225                      </div>
226             </td>
227             <td class="sig">
228                 <div class="mdesc">
229
230
231                    <div class="short">
232                         Date interval constant
233                    
234                    
235                    
236                    </div> 
237                     
238                     <div class="long">
239                     
240                         Date interval constant                        
241                  
242                 </div>
243                 </div>
244             </td>
245             
246             <td class="msource">  
247             Date
248             </td>             
249                 
250           </tr>
251                  
252          
253         
254         
255           <tr class="property-row config-row-alt1 notInherited">
256             <td class="micon">
257                 <a class="exi" href="#expand">&nbsp;</a>
258             </td>
259             <td class="sig">
260                <a id="Date-prop-MINUTE" name=".MINUTE"></a>
261                <div class="fixedFont">
262                     <span class="attributes">Date.</span><b  class="itemname">MINUTE</b> :
263                      <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
264                      </div>
265             </td>
266             <td class="sig">
267                 <div class="mdesc">
268
269
270                    <div class="short">
271                         Date interval constant
272                    
273                    
274                    
275                    </div> 
276                     
277                     <div class="long">
278                     
279                         Date interval constant                        
280                  
281                 </div>
282                 </div>
283             </td>
284             
285             <td class="msource">  
286             Date
287             </td>             
288                 
289           </tr>
290                  
291          
292         
293         
294           <tr class="property-row config-row-alt0 notInherited">
295             <td class="micon">
296                 <a class="exi" href="#expand">&nbsp;</a>
297             </td>
298             <td class="sig">
299                <a id="Date-prop-MONTH" name=".MONTH"></a>
300                <div class="fixedFont">
301                     <span class="attributes">Date.</span><b  class="itemname">MONTH</b> :
302                      <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
303                      </div>
304             </td>
305             <td class="sig">
306                 <div class="mdesc">
307
308
309                    <div class="short">
310                         Date interval constant
311                    
312                    
313                    
314                    </div> 
315                     
316                     <div class="long">
317                     
318                         Date interval constant                        
319                  
320                 </div>
321                 </div>
322             </td>
323             
324             <td class="msource">  
325             Date
326             </td>             
327                 
328           </tr>
329                  
330          
331         
332         
333           <tr class="property-row config-row-alt1 notInherited">
334             <td class="micon">
335                 <a class="exi" href="#expand">&nbsp;</a>
336             </td>
337             <td class="sig">
338                <a id="Date-prop-SECOND" name=".SECOND"></a>
339                <div class="fixedFont">
340                     <span class="attributes">Date.</span><b  class="itemname">SECOND</b> :
341                      <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
342                      </div>
343             </td>
344             <td class="sig">
345                 <div class="mdesc">
346
347
348                    <div class="short">
349                         Date interval constant
350                    
351                    
352                    
353                    </div> 
354                     
355                     <div class="long">
356                     
357                         Date interval constant                        
358                  
359                 </div>
360                 </div>
361             </td>
362             
363             <td class="msource">  
364             Date
365             </td>             
366                 
367           </tr>
368                  
369          
370         
371         
372           <tr class="property-row config-row-alt0 notInherited">
373             <td class="micon">
374                 <a class="exi" href="#expand">&nbsp;</a>
375             </td>
376             <td class="sig">
377                <a id="Date-prop-YEAR" name=".YEAR"></a>
378                <div class="fixedFont">
379                     <span class="attributes">Date.</span><b  class="itemname">YEAR</b> :
380                      <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
381                      </div>
382             </td>
383             <td class="sig">
384                 <div class="mdesc">
385
386
387                    <div class="short">
388                         Date interval constant
389                    
390                    
391                    
392                    </div> 
393                     
394                     <div class="long">
395                     
396                         Date interval constant                        
397                  
398                 </div>
399                 </div>
400             </td>
401             
402             <td class="msource">  
403             Date
404             </td>             
405                 
406           </tr>
407                  
408          
409         
410         
411           <tr class="property-row config-row-alt1 notInherited">
412             <td class="micon">
413                 <a class="exi" href="#expand">&nbsp;</a>
414             </td>
415             <td class="sig">
416                <a id="Date-prop-dayNames" name=".dayNames"></a>
417                <div class="fixedFont">
418                     <span class="attributes">Date.</span><b  class="itemname">dayNames</b> :
419                      <span type="etype"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span>
420                      </div>
421             </td>
422             <td class="sig">
423                 <div class="mdesc">
424
425
426                    <div class="short">
427                         An array of textual day names.
428                    
429                    
430                    
431                    </div> 
432                     
433                     <div class="long">
434                     
435                         An array of textual day names.<br/>Override these values for international dates, for example...<br/>Date.dayNames = ['SundayInYourLang', 'MondayInYourLang', ...];                        
436                  
437                 </div>
438                 </div>
439             </td>
440             
441             <td class="msource">  
442             Date
443             </td>             
444                 
445           </tr>
446                  
447          
448         
449         
450           <tr class="property-row config-row-alt0 notInherited">
451             <td class="micon">
452                 <a class="exi" href="#expand">&nbsp;</a>
453             </td>
454             <td class="sig">
455                <a id="Date-prop-monthNames" name=".monthNames"></a>
456                <div class="fixedFont">
457                     <span class="attributes">Date.</span><b  class="itemname">monthNames</b> :
458                      <span type="etype"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span>
459                      </div>
460             </td>
461             <td class="sig">
462                 <div class="mdesc">
463
464
465                    <div class="short">
466                         An array of textual month names.
467                    
468                    
469                    
470                    </div> 
471                     
472                     <div class="long">
473                     
474                         An array of textual month names.<br/>Override these values for international dates, for example...<br/>Date.monthNames = ['JanInYourLang', 'FebInYourLang', ...];                        
475                  
476                 </div>
477                 </div>
478             </td>
479             
480             <td class="msource">  
481             Date
482             </td>             
483                 
484           </tr>
485         
486         
487          
488         
489       
490         <!-- TODO: implement this alt row.  also notice non-linked "Defined by" when property is a part of this class.     
491         <tr class="property-row alt">
492              
493         -->
494
495     </table>
496   
497     
498   <!-- ============================== methods summary / details ======================== -->
499   
500   
501   <a id="Date-methods"></a>
502         <!-- constructor?? -->
503         
504         <!-- static's first 
505         
506         
507         -->
508         
509         <!-- then dynamics first -->
510         
511   
512   
513     
514     
515     
516       <table cellspacing="0" class="member-table">
517       <caption>Public Methods</caption>
518         <tr>
519             <th class="sig-header" colspan="2">Method</th>            
520             <th class="msource-header">Defined By</th>
521
522         </tr>
523         
524         
525         
526          
527         
528         
529           
530           <tr class="method-row config-row-alt0 expandable notInherited">
531             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
532            
533            
534             <td class="sig">
535                 <a id="Date-method-parseDate"   name=".parseDate"></a>
536                 <div class="fixedFont">
537                         <span class="attributes">Date.</span><b class="itemname">parseDate</b>
538                                 
539                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>input</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>format</i></B>) 
540                         
541                                 
542                                          : 
543                                         
544                                                 
545                                                 <a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a>
546                                         
547                                         
548                                         
549                                 
550                         
551                 </div>
552                 <div class="mdesc">
553                 
554                    <div class="short">Parses the passed string using the specified format.</div> 
555                  
556                  
557                  
558                     <div class="long">
559                         
560                                 Parses the passed string using the specified format. Note that this function expects dates in normal calendar<br/>format, meaning that months are 1-based (1 = January) and not zero-based like in JavaScript dates.  Any part of<br/>the date format that is not specified will default to the current date value for that part.  Time parts can also<br/>be specified, but default to 0.  Keep in mind that the input date string must precisely match the specified format<br/>string or the parse operation will fail.<br/>Example Usage:<br/><pre><code><br/>//dt = Fri May 25 2007 (current date)<br/>var dt = new Date();<br/><br/>//dt = Thu May 25 2006 (today's month/day in 2006)<br/>dt = Date.parseDate("2006", "Y");<br/><br/>//dt = Sun Jan 15 2006 (all date parts specified)<br/>dt = Date.parseDate("2006-1-15", "Y-m-d");<br/><br/>//dt = Sun Jan 15 2006 15:20:01 GMT-0600 (CST)<br/>dt = Date.parseDate("2006-1-15 3:20:01 PM", "Y-m-d h:i:s A" );<br/></code></pre>
561                     
562                                 
563                         
564                         
565                         
566                         
567                                 <dl class="detailList">
568                                 <dt class="heading">Parameters:</dt>
569                                 
570                                         <dt>
571                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>input</b>
572                                                 
573                                         </dt>
574                                         <dd>The unparsed date as a string</dd>
575                                 
576                                         <dt>
577                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>format</b>
578                                                 
579                                         </dt>
580                                         <dd>The format the date is in</dd>
581                                 
582                                 </dl>
583                         
584                         
585                         
586                         
587                         
588                                 <dl class="detailList">
589                                 <dt class="heading">Returns:</dt>
590                                 
591                                         <dd><span class="fixedFont"><a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a></span>  The parsed date</dd>
592                                 
593                                 </dl>
594                         
595                         
596                         
597
598                     
599                     
600                      
601                     </div>                    
602                 </div>
603
604             </td>
605             <td class="msource">
606                 
607                         Date
608                 &nbsp;
609             </td>
610         </tr>
611         
612           
613           <tr class="method-row config-row-alt1 expandable notInherited">
614             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
615            
616            
617             <td class="sig">
618                 <a id="Date-method-add"   name=".add"></a>
619                 <div class="fixedFont">
620                         <span class="attributes"></span><b class="itemname">add</b>
621                                 
622                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>interval</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>value</i></B>) 
623                         
624                                 
625                                          : 
626                                         
627                                                 
628                                                 <a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a>
629                                         
630                                         
631                                         
632                                 
633                         
634                 </div>
635                 <div class="mdesc">
636                 
637                    <div class="short">Provides a convenient method of performing basic date arithmetic.</div> 
638                  
639                  
640                  
641                     <div class="long">
642                         
643                                 Provides a convenient method of performing basic date arithmetic.  This method<br/>does not modify the Date instance being called - it creates and returns<br/>a new Date instance containing the resulting date value.<br/><br/>Examples:<br/><pre><code><br/>//Basic usage:<br/>var dt = new Date('10/29/2006').add(Date.DAY, 5);<br/>document.write(dt); //returns 'Fri Oct 06 2006 00:00:00'<br/><br/>//Negative values will subtract correctly:<br/>var dt2 = new Date('10/1/2006').add(Date.DAY, -5);<br/>document.write(dt2); //returns 'Tue Sep 26 2006 00:00:00'<br/><br/>//You can even chain several calls together in one line!<br/>var dt3 = new Date('10/1/2006').add(Date.DAY, 5).add(Date.HOUR, 8).add(Date.MINUTE, -30);<br/>document.write(dt3); //returns 'Fri Oct 06 2006 07:30:00'<br/> </code></pre>
644                     
645                                 
646                         
647                         
648                         
649                         
650                                 <dl class="detailList">
651                                 <dt class="heading">Parameters:</dt>
652                                 
653                                         <dt>
654                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>interval</b>
655                                                 
656                                         </dt>
657                                         <dd>A valid date interval enum value</dd>
658                                 
659                                         <dt>
660                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>value</b>
661                                                 
662                                         </dt>
663                                         <dd>The amount to add to the current date</dd>
664                                 
665                                 </dl>
666                         
667                         
668                         
669                         
670                         
671                                 <dl class="detailList">
672                                 <dt class="heading">Returns:</dt>
673                                 
674                                         <dd><span class="fixedFont"><a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a></span>  The new Date instance</dd>
675                                 
676                                 </dl>
677                         
678                         
679                         
680
681                     
682                     
683                      
684                     </div>                    
685                 </div>
686
687             </td>
688             <td class="msource">
689                 
690                         Date
691                 &nbsp;
692             </td>
693         </tr>
694         
695           
696           <tr class="method-row config-row-alt0 expandable notInherited">
697             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
698            
699            
700             <td class="sig">
701                 <a id="Date-method-clearTime"   name=".clearTime"></a>
702                 <div class="fixedFont">
703                         <span class="attributes"></span><b class="itemname">clearTime</b>
704                                 
705                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>clone</i></B>) 
706                         
707                                 
708                                          : 
709                                         
710                                                 
711                                                 <a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a>
712                                         
713                                         
714                                         
715                                 
716                         
717                 </div>
718                 <div class="mdesc">
719                 
720                    <div class="short">Clears any time information from this date</div> 
721                  
722                  
723                  
724                     <div class="long">
725                         
726                                 Clears any time information from this date
727                     
728                                 
729                         
730                         
731                         
732                         
733                                 <dl class="detailList">
734                                 <dt class="heading">Parameters:</dt>
735                                 
736                                         <dt>
737                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>clone</b>
738                                                 
739                                         </dt>
740                                         <dd>true to create a clone of this date, clear the time and return it</dd>
741                                 
742                                 </dl>
743                         
744                         
745                         
746                         
747                         
748                                 <dl class="detailList">
749                                 <dt class="heading">Returns:</dt>
750                                 
751                                         <dd><span class="fixedFont"><a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a></span>  this or the clone</dd>
752                                 
753                                 </dl>
754                         
755                         
756                         
757
758                     
759                     
760                      
761                     </div>                    
762                 </div>
763
764             </td>
765             <td class="msource">
766                 
767                         Date
768                 &nbsp;
769             </td>
770         </tr>
771         
772           
773           <tr class="method-row config-row-alt1 expandable notInherited">
774             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
775            
776            
777             <td class="sig">
778                 <a id="Date-method-clone"   name=".clone"></a>
779                 <div class="fixedFont">
780                         <span class="attributes"></span><b class="itemname">clone</b>
781                                 
782                                  () 
783                         
784                                 
785                                          : 
786                                         
787                                                 
788                                                 <a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a>
789                                         
790                                         
791                                         
792                                 
793                         
794                 </div>
795                 <div class="mdesc">
796                 
797                    <div class="short">Creates and returns a new Date instance with the exact same date value as the called instance.</div> 
798                  
799                  
800                  
801                     <div class="long">
802                         
803                                 Creates and returns a new Date instance with the exact same date value as the called instance.<br/>Dates are copied and passed by reference, so if a copied date variable is modified later, the original<br/>variable will also be changed.  When the intention is to create a new variable that will not<br/>modify the original instance, you should create a clone.<br/><br/>Example of correctly cloning a date:<br/><pre><code><br/>//wrong way:<br/>var orig = new Date('10/1/2006');<br/>var copy = orig;<br/>copy.setDate(5);<br/>document.write(orig);  //returns 'Thu Oct 05 2006'!<br/><br/>//correct way:<br/>var orig = new Date('10/1/2006');<br/>var copy = orig.clone();<br/>copy.setDate(5);<br/>document.write(orig);  //returns 'Thu Oct 01 2006'<br/></code></pre>
804                     
805                                 
806                         
807                         
808                         
809                         
810                         
811                         
812                         
813                         
814                                 <dl class="detailList">
815                                 <dt class="heading">Returns:</dt>
816                                 
817                                         <dd><span class="fixedFont"><a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a></span>  The new Date instance</dd>
818                                 
819                                 </dl>
820                         
821                         
822                         
823
824                     
825                     
826                      
827                     </div>                    
828                 </div>
829
830             </td>
831             <td class="msource">
832                 
833                         Date
834                 &nbsp;
835             </td>
836         </tr>
837         
838           
839           <tr class="method-row config-row-alt0 expandable notInherited">
840             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
841            
842            
843             <td class="sig">
844                 <a id="Date-method-format"   name=".format"></a>
845                 <div class="fixedFont">
846                         <span class="attributes"></span><b class="itemname">format</b>
847                                 
848                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>format</i></B>) 
849                         
850                                 
851                                          : 
852                                         
853                                                 
854                                                 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
855                                         
856                                         
857                                         
858                                 
859                         
860                 </div>
861                 <div class="mdesc">
862                 
863                    <div class="short">Formats a date given the supplied format string</div> 
864                  
865                  
866                  
867                     <div class="long">
868                         
869                                 Formats a date given the supplied format string
870                     
871                                 
872                         
873                         
874                         
875                         
876                                 <dl class="detailList">
877                                 <dt class="heading">Parameters:</dt>
878                                 
879                                         <dt>
880                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>format</b>
881                                                 
882                                         </dt>
883                                         <dd>The format string</dd>
884                                 
885                                 </dl>
886                         
887                         
888                         
889                         
890                         
891                                 <dl class="detailList">
892                                 <dt class="heading">Returns:</dt>
893                                 
894                                         <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  The formatted date</dd>
895                                 
896                                 </dl>
897                         
898                         
899                         
900
901                     
902                     
903                      
904                     </div>                    
905                 </div>
906
907             </td>
908             <td class="msource">
909                 
910                         Date
911                 &nbsp;
912             </td>
913         </tr>
914         
915           
916           <tr class="method-row config-row-alt1 expandable notInherited">
917             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
918            
919            
920             <td class="sig">
921                 <a id="Date-method-getDayOfYear"   name=".getDayOfYear"></a>
922                 <div class="fixedFont">
923                         <span class="attributes"></span><b class="itemname">getDayOfYear</b>
924                                 
925                                  () 
926                         
927                                 
928                                          : 
929                                         
930                                                 
931                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
932                                         
933                                         
934                                         
935                                 
936                         
937                 </div>
938                 <div class="mdesc">
939                 
940                    <div class="short">Get the numeric day number of the year, adjusted for leap year.</div> 
941                  
942                  
943                  
944                     <div class="long">
945                         
946                                 Get the numeric day number of the year, adjusted for leap year.
947                     
948                                 
949                         
950                         
951                         
952                         
953                         
954                         
955                         
956                         
957                                 <dl class="detailList">
958                                 <dt class="heading">Returns:</dt>
959                                 
960                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  0 through 364 (365 in leap years)</dd>
961                                 
962                                 </dl>
963                         
964                         
965                         
966
967                     
968                     
969                      
970                     </div>                    
971                 </div>
972
973             </td>
974             <td class="msource">
975                 
976                         Date
977                 &nbsp;
978             </td>
979         </tr>
980         
981           
982           <tr class="method-row config-row-alt0 expandable notInherited">
983             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
984            
985            
986             <td class="sig">
987                 <a id="Date-method-getDaysInMonth"   name=".getDaysInMonth"></a>
988                 <div class="fixedFont">
989                         <span class="attributes"></span><b class="itemname">getDaysInMonth</b>
990                                 
991                                  () 
992                         
993                                 
994                                          : 
995                                         
996                                                 
997                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
998                                         
999                                         
1000                                         
1001                                 
1002                         
1003                 </div>
1004                 <div class="mdesc">
1005                 
1006                    <div class="short">Get the number of days in the current month, adjusted for leap year.</div> 
1007                  
1008                  
1009                  
1010                     <div class="long">
1011                         
1012                                 Get the number of days in the current month, adjusted for leap year.
1013                     
1014                                 
1015                         
1016                         
1017                         
1018                         
1019                         
1020                         
1021                         
1022                         
1023                                 <dl class="detailList">
1024                                 <dt class="heading">Returns:</dt>
1025                                 
1026                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The number of days in the month</dd>
1027                                 
1028                                 </dl>
1029                         
1030                         
1031                         
1032
1033                     
1034                     
1035                      
1036                     </div>                    
1037                 </div>
1038
1039             </td>
1040             <td class="msource">
1041                 
1042                         Date
1043                 &nbsp;
1044             </td>
1045         </tr>
1046         
1047           
1048           <tr class="method-row config-row-alt1 expandable notInherited">
1049             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1050            
1051            
1052             <td class="sig">
1053                 <a id="Date-method-getElapsed"   name=".getElapsed"></a>
1054                 <div class="fixedFont">
1055                         <span class="attributes"></span><b class="itemname">getElapsed</b>
1056                                 
1057                                  (<a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a> <B><i>date</i></B>) 
1058                         
1059                                 
1060                                          : 
1061                                         
1062                                                 
1063                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1064                                         
1065                                         
1066                                         
1067                                 
1068                         
1069                 </div>
1070                 <div class="mdesc">
1071                 
1072                    <div class="short">Returns the number of milliseconds between this date and date</div> 
1073                  
1074                  
1075                  
1076                     <div class="long">
1077                         
1078                                 Returns the number of milliseconds between this date and date
1079                     
1080                                 
1081                         
1082                         
1083                         
1084                         
1085                                 <dl class="detailList">
1086                                 <dt class="heading">Parameters:</dt>
1087                                 
1088                                         <dt>
1089                                                 <span class="fixedFont"><a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a></span>  <b>date</b>
1090                                                 
1091                                         </dt>
1092                                         <dd>(optional) Defaults to now</dd>
1093                                 
1094                                 </dl>
1095                         
1096                         
1097                         
1098                         
1099                         
1100                                 <dl class="detailList">
1101                                 <dt class="heading">Returns:</dt>
1102                                 
1103                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The diff in milliseconds</dd>
1104                                 
1105                                 </dl>
1106                         
1107                         
1108                         
1109
1110                     
1111                     
1112                      
1113                     </div>                    
1114                 </div>
1115
1116             </td>
1117             <td class="msource">
1118                 
1119                         Date
1120                 &nbsp;
1121             </td>
1122         </tr>
1123         
1124           
1125           <tr class="method-row config-row-alt0 expandable notInherited">
1126             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1127            
1128            
1129             <td class="sig">
1130                 <a id="Date-method-getFirstDateOfMonth"   name=".getFirstDateOfMonth"></a>
1131                 <div class="fixedFont">
1132                         <span class="attributes"></span><b class="itemname">getFirstDateOfMonth</b>
1133                                 
1134                                  () 
1135                         
1136                                 
1137                                          : 
1138                                         
1139                                                 
1140                                                 <a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a>
1141                                         
1142                                         
1143                                         
1144                                 
1145                         
1146                 </div>
1147                 <div class="mdesc">
1148                 
1149                    <div class="short">Get the first date of this date's month</div> 
1150                  
1151                  
1152                  
1153                     <div class="long">
1154                         
1155                                 Get the first date of this date's month
1156                     
1157                                 
1158                         
1159                         
1160                         
1161                         
1162                         
1163                         
1164                         
1165                         
1166                                 <dl class="detailList">
1167                                 <dt class="heading">Returns:</dt>
1168                                 
1169                                         <dd><span class="fixedFont"><a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a></span>  </dd>
1170                                 
1171                                 </dl>
1172                         
1173                         
1174                         
1175
1176                     
1177                     
1178                      
1179                     </div>                    
1180                 </div>
1181
1182             </td>
1183             <td class="msource">
1184                 
1185                         Date
1186                 &nbsp;
1187             </td>
1188         </tr>
1189         
1190           
1191           <tr class="method-row config-row-alt1 expandable notInherited">
1192             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1193            
1194            
1195             <td class="sig">
1196                 <a id="Date-method-getFirstDayOfMonth"   name=".getFirstDayOfMonth"></a>
1197                 <div class="fixedFont">
1198                         <span class="attributes"></span><b class="itemname">getFirstDayOfMonth</b>
1199                                 
1200                                  () 
1201                         
1202                                 
1203                                          : 
1204                                         
1205                                                 
1206                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1207                                         
1208                                         
1209                                         
1210                                 
1211                         
1212                 </div>
1213                 <div class="mdesc">
1214                 
1215                    <div class="short">Get the first day of the current month, adjusted for leap year.</div> 
1216                  
1217                  
1218                  
1219                     <div class="long">
1220                         
1221                                 Get the first day of the current month, adjusted for leap year.  The returned value<br/>is the numeric day index within the week (0-6) which can be used in conjunction with<br/>the {<b>link</b> <b>monthNames</b>} array to retrieve the textual day name.<br/>Example:<br/><pre><code><br/>var dt = new Date('1/10/2007');<br/>document.write(Date.dayNames[dt.getFirstDayOfMonth()]); //output: 'Monday'<br/></code></pre>
1222                     
1223                                 
1224                         
1225                         
1226                         
1227                         
1228                         
1229                         
1230                         
1231                         
1232                                 <dl class="detailList">
1233                                 <dt class="heading">Returns:</dt>
1234                                 
1235                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The day number (0-6)</dd>
1236                                 
1237                                 </dl>
1238                         
1239                         
1240                         
1241
1242                     
1243                     
1244                      
1245                     </div>                    
1246                 </div>
1247
1248             </td>
1249             <td class="msource">
1250                 
1251                         Date
1252                 &nbsp;
1253             </td>
1254         </tr>
1255         
1256           
1257           <tr class="method-row config-row-alt0 expandable notInherited">
1258             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1259            
1260            
1261             <td class="sig">
1262                 <a id="Date-method-getGMTOffset"   name=".getGMTOffset"></a>
1263                 <div class="fixedFont">
1264                         <span class="attributes"></span><b class="itemname">getGMTOffset</b>
1265                                 
1266                                  () 
1267                         
1268                                 
1269                                          : 
1270                                         
1271                                                 
1272                                                 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
1273                                         
1274                                         
1275                                         
1276                                 
1277                         
1278                 </div>
1279                 <div class="mdesc">
1280                 
1281                    <div class="short">Get the offset from GMT of the current date (equivalent to the format specifier 'O').</div> 
1282                  
1283                  
1284                  
1285                     <div class="long">
1286                         
1287                                 Get the offset from GMT of the current date (equivalent to the format specifier 'O').
1288                     
1289                                 
1290                         
1291                         
1292                         
1293                         
1294                         
1295                         
1296                         
1297                         
1298                                 <dl class="detailList">
1299                                 <dt class="heading">Returns:</dt>
1300                                 
1301                                         <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  The 4-character offset string prefixed with + or - (e.g. '-0600')</dd>
1302                                 
1303                                 </dl>
1304                         
1305                         
1306                         
1307
1308                     
1309                     
1310                      
1311                     </div>                    
1312                 </div>
1313
1314             </td>
1315             <td class="msource">
1316                 
1317                         Date
1318                 &nbsp;
1319             </td>
1320         </tr>
1321         
1322           
1323           <tr class="method-row config-row-alt1 expandable notInherited">
1324             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1325            
1326            
1327             <td class="sig">
1328                 <a id="Date-method-getLastDateOfMonth"   name=".getLastDateOfMonth"></a>
1329                 <div class="fixedFont">
1330                         <span class="attributes"></span><b class="itemname">getLastDateOfMonth</b>
1331                                 
1332                                  () 
1333                         
1334                                 
1335                                          : 
1336                                         
1337                                                 
1338                                                 <a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a>
1339                                         
1340                                         
1341                                         
1342                                 
1343                         
1344                 </div>
1345                 <div class="mdesc">
1346                 
1347                    <div class="short">Get the last date of this date's month</div> 
1348                  
1349                  
1350                  
1351                     <div class="long">
1352                         
1353                                 Get the last date of this date's month
1354                     
1355                                 
1356                         
1357                         
1358                         
1359                         
1360                         
1361                         
1362                         
1363                         
1364                                 <dl class="detailList">
1365                                 <dt class="heading">Returns:</dt>
1366                                 
1367                                         <dd><span class="fixedFont"><a href="./Date.html#constructor" roo:cls="Date.html#constructor">Date</a></span>  </dd>
1368                                 
1369                                 </dl>
1370                         
1371                         
1372                         
1373
1374                     
1375                     
1376                      
1377                     </div>                    
1378                 </div>
1379
1380             </td>
1381             <td class="msource">
1382                 
1383                         Date
1384                 &nbsp;
1385             </td>
1386         </tr>
1387         
1388           
1389           <tr class="method-row config-row-alt0 expandable notInherited">
1390             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1391            
1392            
1393             <td class="sig">
1394                 <a id="Date-method-getLastDayOfMonth"   name=".getLastDayOfMonth"></a>
1395                 <div class="fixedFont">
1396                         <span class="attributes"></span><b class="itemname">getLastDayOfMonth</b>
1397                                 
1398                                  () 
1399                         
1400                                 
1401                                          : 
1402                                         
1403                                                 
1404                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1405                                         
1406                                         
1407                                         
1408                                 
1409                         
1410                 </div>
1411                 <div class="mdesc">
1412                 
1413                    <div class="short">Get the last day of the current month, adjusted for leap year.</div> 
1414                  
1415                  
1416                  
1417                     <div class="long">
1418                         
1419                                 Get the last day of the current month, adjusted for leap year.  The returned value<br/>is the numeric day index within the week (0-6) which can be used in conjunction with<br/>the {<b>link</b> <b>monthNames</b>} array to retrieve the textual day name.<br/>Example:<br/><pre><code><br/>var dt = new Date('1/10/2007');<br/>document.write(Date.dayNames[dt.getLastDayOfMonth()]); //output: 'Wednesday'<br/></code></pre>
1420                     
1421                                 
1422                         
1423                         
1424                         
1425                         
1426                         
1427                         
1428                         
1429                         
1430                                 <dl class="detailList">
1431                                 <dt class="heading">Returns:</dt>
1432                                 
1433                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The day number (0-6)</dd>
1434                                 
1435                                 </dl>
1436                         
1437                         
1438                         
1439
1440                     
1441                     
1442                      
1443                     </div>                    
1444                 </div>
1445
1446             </td>
1447             <td class="msource">
1448                 
1449                         Date
1450                 &nbsp;
1451             </td>
1452         </tr>
1453         
1454           
1455           <tr class="method-row config-row-alt1 expandable notInherited">
1456             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1457            
1458            
1459             <td class="sig">
1460                 <a id="Date-method-getSuffix"   name=".getSuffix"></a>
1461                 <div class="fixedFont">
1462                         <span class="attributes"></span><b class="itemname">getSuffix</b>
1463                                 
1464                                  () 
1465                         
1466                                 
1467                                          : 
1468                                         
1469                                                 
1470                                                 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
1471                                         
1472                                         
1473                                         
1474                                 
1475                         
1476                 </div>
1477                 <div class="mdesc">
1478                 
1479                    <div class="short">Get the English ordinal suffix of the current day (equivalent to the format specifier 'S').</div> 
1480                  
1481                  
1482                  
1483                     <div class="long">
1484                         
1485                                 Get the English ordinal suffix of the current day (equivalent to the format specifier 'S').
1486                     
1487                                 
1488                         
1489                         
1490                         
1491                         
1492                         
1493                         
1494                         
1495                         
1496                                 <dl class="detailList">
1497                                 <dt class="heading">Returns:</dt>
1498                                 
1499                                         <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  'st, 'nd', 'rd' or 'th'</dd>
1500                                 
1501                                 </dl>
1502                         
1503                         
1504                         
1505
1506                     
1507                     
1508                      
1509                     </div>                    
1510                 </div>
1511
1512             </td>
1513             <td class="msource">
1514                 
1515                         Date
1516                 &nbsp;
1517             </td>
1518         </tr>
1519         
1520           
1521           <tr class="method-row config-row-alt0 expandable notInherited">
1522             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1523            
1524            
1525             <td class="sig">
1526                 <a id="Date-method-getTimezone"   name=".getTimezone"></a>
1527                 <div class="fixedFont">
1528                         <span class="attributes"></span><b class="itemname">getTimezone</b>
1529                                 
1530                                  () 
1531                         
1532                                 
1533                                          : 
1534                                         
1535                                                 
1536                                                 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
1537                                         
1538                                         
1539                                         
1540                                 
1541                         
1542                 </div>
1543                 <div class="mdesc">
1544                 
1545                    <div class="short">Get the timezone abbreviation of the current date (equivalent to the format specifier 'T').</div> 
1546                  
1547                  
1548                  
1549                     <div class="long">
1550                         
1551                                 Get the timezone abbreviation of the current date (equivalent to the format specifier 'T').
1552                     
1553                                 
1554                         
1555                         
1556                         
1557                         
1558                         
1559                         
1560                         
1561                         
1562                                 <dl class="detailList">
1563                                 <dt class="heading">Returns:</dt>
1564                                 
1565                                         <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  The abbreviated timezone name (e.g. 'CST')</dd>
1566                                 
1567                                 </dl>
1568                         
1569                         
1570                         
1571
1572                     
1573                     
1574                      
1575                     </div>                    
1576                 </div>
1577
1578             </td>
1579             <td class="msource">
1580                 
1581                         Date
1582                 &nbsp;
1583             </td>
1584         </tr>
1585         
1586           
1587           <tr class="method-row config-row-alt1 expandable notInherited">
1588             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1589            
1590            
1591             <td class="sig">
1592                 <a id="Date-method-getWeekOfYear"   name=".getWeekOfYear"></a>
1593                 <div class="fixedFont">
1594                         <span class="attributes"></span><b class="itemname">getWeekOfYear</b>
1595                                 
1596                                  () 
1597                         
1598                                 
1599                                          : 
1600                                         
1601                                                 
1602                                                 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
1603                                         
1604                                         
1605                                         
1606                                 
1607                         
1608                 </div>
1609                 <div class="mdesc">
1610                 
1611                    <div class="short">Get the string representation of the numeric week number of the year<br/>(equivalent to the format specifier 'W').</div> 
1612                  
1613                  
1614                  
1615                     <div class="long">
1616                         
1617                                 Get the string representation of the numeric week number of the year<br/>(equivalent to the format specifier 'W').
1618                     
1619                                 
1620                         
1621                         
1622                         
1623                         
1624                         
1625                         
1626                         
1627                         
1628                                 <dl class="detailList">
1629                                 <dt class="heading">Returns:</dt>
1630                                 
1631                                         <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  '00' through '52'</dd>
1632                                 
1633                                 </dl>
1634                         
1635                         
1636                         
1637
1638                     
1639                     
1640                      
1641                     </div>                    
1642                 </div>
1643
1644             </td>
1645             <td class="msource">
1646                 
1647                         Date
1648                 &nbsp;
1649             </td>
1650         </tr>
1651         
1652           
1653           <tr class="method-row config-row-alt0 expandable notInherited">
1654             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1655            
1656            
1657             <td class="sig">
1658                 <a id="Date-method-isLeapYear"   name=".isLeapYear"></a>
1659                 <div class="fixedFont">
1660                         <span class="attributes"></span><b class="itemname">isLeapYear</b>
1661                                 
1662                                  () 
1663                         
1664                                 
1665                                          : 
1666                                         
1667                                                 
1668                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1669                                         
1670                                         
1671                                         
1672                                 
1673                         
1674                 </div>
1675                 <div class="mdesc">
1676                 
1677                    <div class="short">Whether or not the current date is in a leap year.</div> 
1678                  
1679                  
1680                  
1681                     <div class="long">
1682                         
1683                                 Whether or not the current date is in a leap year.
1684                     
1685                                 
1686                         
1687                         
1688                         
1689                         
1690                         
1691                         
1692                         
1693                         
1694                                 <dl class="detailList">
1695                                 <dt class="heading">Returns:</dt>
1696                                 
1697                                         <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  True if the current date is in a leap year, else false</dd>
1698                                 
1699                                 </dl>
1700                         
1701                         
1702                         
1703
1704                     
1705                     
1706                      
1707                     </div>                    
1708                 </div>
1709
1710             </td>
1711             <td class="msource">
1712                 
1713                         Date
1714                 &nbsp;
1715             </td>
1716         </tr>
1717         
1718                                                        
1719     </table>
1720
1721   
1722   <!-- ============================== events summary / details ======================== -->
1723   
1724   
1725   <a id="Date-events"></a>
1726     
1727   
1728         
1729    
1730     
1731      <table cellspacing="0" class="member-table">
1732       <caption class="Empty">Events - Has None</caption>
1733      </table>
1734     
1735     
1736   
1737     
1738     
1739   
1740   
1741   
1742  
1743 <!-- ============================== footer ================================= -->
1744                 <div class="fineprint" style="clear:both">
1745                         
1746                         Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Tue Jul 27 2010 11:05:06 GMT+0800 (HKT)
1747                         Based on 
1748                         <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
1749                 </div>
1750         </body>
1751 </html>