Created
April 28, 2011 15:21
-
-
Save ungood/946554 to your computer and use it in GitHub Desktop.
Calculate Moon Landing Equinox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function calcEquinox(midpoint) { | |
| midpoint = midpoint || new Date(); | |
| var moonLanding = new Date("7/20/1969 20:17:40 UTC"); | |
| console.log(moonLanding); | |
| var equinox = (2 * midpoint.getTime()) - moonLanding.getTime(); | |
| return new Date(equinox); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment