saasbook

date_calculator_pseudocode.txt

Aug 21st, 2012
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment