Skip to content

Conversation

@ind1xa
Copy link
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
Copy link
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.

HOURS_IN_DAY = 24
UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0, 0)

def getOffset(timezone, date):
Copy link
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
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
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
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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ship it PR approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants