Repository navigation
5 datetime functions - #534
Merged
Merged
Conversation
wojciechczerniak
approved these changes
Sep 30, 2020
This was referenced Sep 30, 2020
bardek8
suggested changes
Oct 2, 2020
4 tasks
Contributor
|
This pull request introduces 1 alert when merging d018646 into 3ef9534 - view on LGTM.com new alerts:
|
bardek8
approved these changes
Oct 3, 2020
bardek8
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the refactor and fixes!
|
|
||
| if(typeof weekend !== 'number' && typeof weekend !== 'string') { | ||
| return new CellError(ErrorType.VALUE, ErrorMessage.WrongType) | ||
| if(weekend === '1111111') { |
Contributor
There was a problem hiding this comment.
Do you need it here? IIUC, you'll check it in the next lines anyway.
Contributor
Author
There was a problem hiding this comment.
thanks for spotting an error. NETWORKDAYS accepts '1111111', while WORKDAY does not
Contributor
Author
There was a problem hiding this comment.
ok, actually NETWORKDAYS does not accept '1111111' even though it makes sense there...
Contributor
There was a problem hiding this comment.
Yeah, 1111111 is quite an awkward setting :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Functions: INTERVAL, NETWORKDAYS, NETWORKDAYS.INTL, WORKDAY, WORKDAY.INTL.
How has this been tested?
Types of changes
Related issue(s):
Checklist: