Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 0.55 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* call-seq:
  2.  *   commercial() -> Date <br />
  3.  *   commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br />
  4.  *   commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9]
  5.  *
  6.  * If no arguments are given:
  7.  * * ruby 1.8: returns a +Date+ for 1582-10-15 (the Day of Calendar Reform in Italy)
  8.  * * ruby 1.9: returns a +Date+ for julian day 0
  9.  *
  10.  * Otherwise, returns a +Date+ for the commercial week year, commercial week, and
  11.  * commercial week day given.
  12.  * Raises an +ArgumentError+ for invalid dates.
  13.  * Ignores the 4th argument.
  14.  */