You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For day six of Space Week, you will be given a date in the format "YYYY-MM-DD" and need to determine the phase of the moon for that day using the following rules:
4
+
5
+
Use a simplified lunar cycle of 28 days, divided into four equal phases:
6
+
7
+
"New": days 1 - 7
8
+
"Waxing": days 8 - 14
9
+
"Full": days 15 - 21
10
+
"Waning": days 22 - 28
11
+
After day 28, the cycle repeats with day 1, a new moon.
12
+
13
+
Use "2000-01-06" as a reference new moon (day 1 of the cycle) to determine the phase of the given day.
14
+
You will not be given any dates before the reference date.
0 commit comments