Skip to content

5 datetime functions - #534

Merged
izulin merged 25 commits into
developfrom
pu/datetime
Oct 3, 2020
Merged

izulin merged 25 commits into
developfrom
pu/datetime

Conversation

@izulin

@izulin izulin commented Sep 29, 2020 •

Copy link
Copy Markdown
Contributor

Context

Functions: INTERVAL, NETWORKDAYS, NETWORKDAYS.INTL, WORKDAY, WORKDAY.INTL.

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature or improvement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Additional language file or change to the existing one (translations)

Related issue(s):

Checklist:

  • My code follows the code style of this project,
  • My change requires a change to the documentation,
  • I described the modification in the CHANGELOG.md file.

@izulin
izulin changed the base branch from master to develop September 29, 2020 22:53
Comment thread CHANGELOG.md Resolved
@lgtm-com

lgtm-com Bot commented Oct 2, 2020

Copy link
Copy Markdown
Contributor

This pull request introduces 1 alert when merging d018646 into 3ef9534 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@izulin
izulin requested a review from bardek8 October 2, 2020 20:50

@bardek8 bardek8 left a comment

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.

Thanks for the refactor and fixes!


if(typeof weekend !== 'number' && typeof weekend !== 'string') {
return new CellError(ErrorType.VALUE, ErrorMessage.WrongType)
if(weekend === '1111111') {

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.

Do you need it here? IIUC, you'll check it in the next lines anyway.

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.

thanks for spotting an error. NETWORKDAYS accepts '1111111', while WORKDAY does not

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.

ok, actually NETWORKDAYS does not accept '1111111' even though it makes sense there...

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.

Yeah, 1111111 is quite an awkward setting :)

@izulin
izulin merged commit 7152125 into develop Oct 3, 2020
@izulin
izulin deleted the pu/datetime branch October 3, 2020 10:08
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