Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed deprecated function datetime.datetime.utcnow() #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

deepyes02
Copy link

to datetime.datetime.now(datetime.UTC)

@amitgaru2
Copy link
Owner

@deepyes02 please mention the Python versions the code work / do not work for clearly.

…ater), otherwise, use datetime.timezone.utc for backward compatibility.

Original deprecated function datetime.datetime.utcnow()

Updated test code
@amitgaru2 amitgaru2 assigned amitgaru2 and unassigned amitgaru2 Nov 25, 2024
@deepyes02
Copy link
Author

Hello @amitgaru2, thank you for your review. I have updated new code with doc as per your instructions. I hope it is useful for users !

@amitgaru2 amitgaru2 self-requested a review November 25, 2024 01:48
@deepyes02
Copy link
Author

Hello @amitgaru2 I needed to ask you how did you calculate the BS csv file that determines the number of days in a month in each year ?

@amitgaru2
Copy link
Owner

@deepyes02 I don't think there is any specific pattern in Bikram Sambat date that one can calculate. I took it from the source https://nepcal.com. More details/discussions here #54.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants