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

date_calculator_pseudocode.txt

By: saasbook on Aug 21st, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 50  |  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. start with Year = 1980
  2. while (days remaining > 365)
  3.   if Year is a leap year
  4.     then if possible, peel off 366 days and advance Year by 1
  5.   else
  6.     peel off 365 days and advance Year by 1
  7. return Year