Created
December 8, 2020 07:15
-
-
Save Abhayparashar31/e7ee2c00cf3be7576462d5e35f8832b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from dateutil.relativedelta import * | |
| from dateutil.easter import * | |
| from dateutil.rrule import * | |
| from dateutil.parser import * | |
| from datetime import * | |
| now = parse("Tue 11 17:13:46 Dec UTC 2020") | |
| today = now.date() | |
| year = rrule(YEARLY,dtstart=now,bymonth=8,bymonthday=13,byweekday=FR)[0].year | |
| rdelta = relativedelta(easter(year), today) | |
| print("Today is: %s" % today) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment