Skip to content

Instantly share code, notes, and snippets.

@armandofox
Created August 20, 2020 18:56
Show Gist options
  • Save armandofox/2183dec77d51a632f93923c6c3946fe6 to your computer and use it in GitHub Desktop.
Save armandofox/2183dec77d51a632f93923c6c3946fe6 to your computer and use it in GitHub Desktop.
date_calculator_pseudocode.txt
start with Year = 1980
while (days remaining > 365)
if Year is a leap year
then if possible, peel off 366 days and advance Year by 1
else
peel off 365 days and advance Year by 1
return Year
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment