Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
f9a9765c
Commit
f9a9765c
authored
Aug 04, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ previous
parent
e6c3d45f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
cell/model/FormulaObjects/dateandtimeFunctions.js
cell/model/FormulaObjects/dateandtimeFunctions.js
+8
-3
No files found.
cell/model/FormulaObjects/dateandtimeFunctions.js
View file @
f9a9765c
...
...
@@ -411,6 +411,13 @@
}
function
weekNumber
(
dt
,
iso
,
type
)
{
if
(
undefined
===
iso
){
iso
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
];
}
if
(
undefined
===
type
){
type
=
0
;
}
dt
.
setUTCHours
(
0
,
0
,
0
);
var
startOfYear
=
new
Date
(
Date
.
UTC
(
dt
.
getUTCFullYear
(),
0
,
1
));
var
endOfYear
=
new
Date
(
dt
);
...
...
@@ -1071,10 +1078,8 @@
return
this
.
value
=
new
cError
(
cErrorType
.
not_numeric
);
}
var
weekdayStartDay
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
];
var
type
=
0
;
return
this
.
value
=
new
cNumber
(
weekNumber
(
Date
.
prototype
.
getDateFromExcel
(
arg0
.
getValue
())
,
weekdayStartDay
,
type
));
new
cNumber
(
weekNumber
(
Date
.
prototype
.
getDateFromExcel
(
arg0
.
getValue
())));
};
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment