Joe Cool

Results 179 comments of Joe Cool

The Perl version of this type of module will give you an array of these objects. The python version should return a list in this case.

Here is the code for Ramadan: def ramadan(year): islamic_year = islamic.from_gregorian(year, 1, 1)[0] result = islamic.to_gregorian(islamic_year, 9, 1) if result[0] < year: result = islamic.to_gregorian(islamic_year+1, 9, 1) elif result[0] >...

Here is the code for Chinese New Year: from lunardate import LunarDate _yot = ('Rat', 'Ox', 'Tiger', 'Rabbit', 'Dragon', 'Snake', 'Horse', 'Goat', 'Monkey', 'Rooster', 'Dog', 'Pig') def year_of_the(year): yr =...

Name them -1 and -2? Not sure as I don’t celebrate them. I wound up coding my own function for Ramadan and Chinese New Year. I skipped the rest. -joe...

Thanks!! Here is the mapping, which is different in Leap years: ecclesiastical_to_civil = {7: 1, 8: 2, 9: 3, 10: 4, 11: 5, 12: 6, 1: 7, 2: 8, 3:...

Yes that will work too - just watch the leap years! -joe Sent from my AT&T iPhone > On Oct 23, 2020, at 7:36 PM, Neil Freeman wrote: > >...

How about: `year, month, day = hebrew.from_gregorian(*ymd, civil=True)`

I'd like to see this support too, in order to match the [$-1170401] number format of Excel.

This document shows the one I'm referring to is Sanskrit, India: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/a29e5c28-9fb9-4c49-8e43-4b9b8e733a05 and others are listed here too.