Duration return value is wrong
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 01:09 AM
var dur = new DurationCalculator();
dur.setSchedule(sys_id of my schedules); // attached my schedules
var duration = dur.calcScheduleDuration("2023-07-03 00:00:00", "2023-07-04 00:00:00");
var secs = dur.getSeconds();
executing the above code in script I am getting value as 72000 -->20 hr instead of 86400 (24 hrs)
My schedules attached here for ref
0 REPLIES 0