-
Notifications
You must be signed in to change notification settings - Fork 35
[main < T585 T586] Implement date functions #291
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
Conversation
antoniofilipovic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, but overall good work.
python/date_module.py
Outdated
| HOURS_IN_DAY = 24 | ||
| UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0, 0) | ||
|
|
||
| def getOffset(timezone, date): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any Typings from pytz library we can use here? So that we have suggestion which type is sent here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the question. Could you rephrase please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, typings yet. Yes sorry. So on Python, you have typings, https://docs.python.org/3/library/typing.html. Are there any available on pytz library which you can use in this case?
antoniofilipovic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Also added e2e tests for them.
Description
Implemented date.parse and date.format procedures and e2e tests for them.
Pull request type
######################################
Reviewer checklist (the reviewer checks this part)
Module/Algorithm
######################################