MCPcopy Create free account
hub / github.com/csev/py4e / daysToMonths

Function daysToMonths

code/gmane/Chart.bundle.js:4505–4509  ·  view source on GitHub ↗
(days)

Source from the content-addressed store, hash-verified

4503 }
4504
4505 function daysToMonths (days) {
4506 // 400 years have 146097 days (taking into account leap year rules)
4507 // 400 years have 12 months === 4800
4508 return days * 4800 / 146097;
4509 }
4510
4511 function monthsToDays (months) {
4512 // the reverse of daysToMonths

Callers 2

bubbleFunction · 0.85
asFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected