mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Tasks] Planned hours
This commit is contained in:
1 parent
9dcc87fbe8
commit
e4abc1fc36
2 files changed
+22
-3
No files matched your search
@@ -80,5 +80,11 @@ export default {
|
||||
|
||||
_getSplitFromDate(date, start) {
|
||||
return differenceInCalendarDays(new Date(date), new Date(start)) * (-1) + 1
|
||||
},
|
||||
|
||||
_getDifferenceInHours(date1, date2) {
|
||||
let diff =(date1.getTime() - date2.getTime()) / 1000;
|
||||
diff /= (60 * 60)
|
||||
return Math.abs(Math.round(diff))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user