
Untitled
By: a guest on
May 10th, 2012 | syntax:
None | size: 0.55 KB | hits: 16 | expires: Never
/* call-seq:
* commercial() -> Date <br />
* commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br />
* commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9]
*
* If no arguments are given:
* * ruby 1.8: returns a +Date+ for 1582-10-15 (the Day of Calendar Reform in Italy)
* * ruby 1.9: returns a +Date+ for julian day 0
*
* Otherwise, returns a +Date+ for the commercial week year, commercial week, and
* commercial week day given.
* Raises an +ArgumentError+ for invalid dates.
* Ignores the 4th argument.
*/