Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

[main < T585 T586] Implement date functions#291

Merged
antepusic merged 13 commits intomainfrom
T585-T586-MAGE-implement-date
Aug 17, 2023
Merged

[main < T585 T586] Implement date functions#291
antepusic merged 13 commits intomainfrom
T585-T586-MAGE-implement-date

Conversation

@ind1xa
Copy link
Copy Markdown
Contributor

@ind1xa ind1xa commented Aug 4, 2023

Description

Implemented date.parse and date.format procedures and e2e tests for them.

Pull request type

  • Bugfix
  • Algorithm/Module
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

######################################

Reviewer checklist (the reviewer checks this part)

Module/Algorithm

######################################

@ind1xa ind1xa added the status: ready PR is ready for review label Aug 4, 2023
@ind1xa ind1xa requested a review from antoniofilipovic August 4, 2023 08:16
@ind1xa ind1xa self-assigned this Aug 4, 2023
Comment thread python/date_module.py Outdated
Copy link
Copy Markdown
Contributor

@antoniofilipovic antoniofilipovic left a 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.

Comment thread python/date_module.py Outdated
Comment thread python/date_module.py Outdated
Comment thread python/date_module.py Outdated
HOURS_IN_DAY = 24
UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0, 0)

def getOffset(timezone, date):
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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?

Copy link
Copy Markdown
Contributor

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 antoniofilipovic added status: change PR reviewed - needs changes and removed status: ready PR is ready for review labels Aug 6, 2023
@ind1xa ind1xa requested a review from antoniofilipovic August 7, 2023 08:44
@ind1xa ind1xa added status: ready PR is ready for review and removed status: change PR reviewed - needs changes labels Aug 7, 2023
Copy link
Copy Markdown
Contributor

@antoniofilipovic antoniofilipovic left a 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

@antoniofilipovic antoniofilipovic added status: ship it PR approved and removed status: ready PR is ready for review labels Aug 9, 2023
Ignition pushed a commit that referenced this pull request Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

status: ship it PR approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants