Lunar Phase and Returns Source Code

I need source code or calculations that, given the day/month/year, hour/minute and timezone (or latitude/longitude?), it can calculate the exact lunar phase in degrees and minutes (also known as the lunar-sun angle), and also tell youwhether it's a NEW, WAXING, […]

Calendars

I am looking for a history of various different calenders including Julian Gregorian etc and the reasons for the changes as well as Judaic and other calenders