User:MtPenguinMonster/testing
From Attu Project
More actions
Testing ref tags
Caseic Calendar to Haracalnde calculations
- 0-0-01 = 7-9 559 TT = 277th day of 559 TT
- 0-3-03 = 30-12 559 TT = 360th day of 559 TT
Number of days = Cy × 351 + Cm × 27 + Cd
To find Haracalnde day:
- Year = -559 + (Number of days - 83) / 360 [Rounded up]
- Month = (Number of days - 83 - 360 × (Year + 558)) / 30 [Rounded down]
- Day = Number of days - 83 - 360 × (Year + 558) - 30 × Month
If Year would be greater than or equal to zero, set Year to Year+1 after doing these calculations, to account for the lack of 0 PC
Test Cases
7-9 559 TT (0-0-1) 29-11 559 TT (0-3-2) 30-11 559 TT (0-3-3) 1-12 559 TT (0-3-4) 2-12 559 TT (0-3-5) 23-12 559 TT (0-3-26) 24-12 559 TT (0-3-27) 25-12 559 TT (0-4-1) 27-12 559 TT (0-4-3) 28-12 559 TT (0-4-4) 29-12 559 TT (0-4-5) 30-12 559 TT (0-4-6) 1-1 558 TT (0-4-7) 22-1 558 TT (0-5-1) 30-1 558 TT (0-5-9) 1-2 558 TT (0-5-10) 18-2 558 TT (0-5-27) 19-2 558 TT (0-6-1) 27-8 558 TT (0-Z-27) 28-8 558 TT (1-0-1) 25-9 558 TT (1-1-1) 1-1 24 TT (548-0-7)
References should collect here
- ↑ Eeble
- ↑ Greeble
