(days)
| 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 |