- Timestamp:
- 06/07/06 19:12:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Calendar/leapyr.html
r89 r93 102 102 <div class="routine_details" id="_leapyr"> 103 103 104 <h2><a class="top" href="#container">top</a>leapyr </h2> 104 <h2><a class="top" href="#container">top</a>leapyr <span class="categories"> calendar 105 </span></h2> 105 106 106 107 <p class="header"> 107 108 <span class="result">result = </span>leapyr(<span class="result"><a href="#_leapyr_param_year">year</a></span>)</p> 108 109 109 <div class="comments"> </div>110 <div class="comments"> 110 111 111 112 determine whether the input year is a leap year or not 113 Very useful for finding number of days in a year. 114 eg. NUM_DAYS_IN_YR = 365 + leapyr(year) 115 </div> 116 117 <h3>Return value</h3><div class="value"> 0 then not a leap year 118 1 then year is a leap year 119 </div> 112 120 113 121 … … 116 124 117 125 <h4 id="_leapyr_param_year">year 126 <span class="attr">in</span> 118 127 119 128 120 121 129 <span class="attr">required</span> 122 130 123 131 … … 126 134 </h4> 127 135 128 <div class="comments"></div> 136 <div class="comments"> year to be tested as a leap year 137 </div> 129 138 130 139 … … 133 142 134 143 144 <h3>Examples</h3><div class="value"> 145 IDL> result = leapyr(2000) 146 </div> 147 <h3>Version history</h3> 135 148 136 149 137 138 139 150 <h4>History</h4><div class="value"> 151 152 Originally Written by: Trevor Harris, Physics Dept., University of Adelaide, 153 20/09/88 154 155 November 2004: correction for century years... S. Masson; 156 157 Every year divisible by 4 is a leap year. 158 But every year divisible by 100 is NOT a leap year 159 Unless the year is also divisible by 400, then it is still a 160 leap year. 161 This means that year 1800, 1900, 2100, 2200, 2300 and 2500 are 162 NOT leap years, while year 2000 and 2400 are leap years. 163 + supress the automatic change 89 -> 1989 164 165 June 2005 update for new commons, Sebastien Masson. 166 </div> 140 167 141 168 … … 146 173 147 174 175 <h3>Other attributes</h3> 148 176 149 177 150 151 178 <h4>Uses routines</h4><div class="value"> cm_4cal 179 </div> 152 180 153 181
Note: See TracChangeset
for help on using the changeset viewer.