Business Duration vs. Duration

John Vo1
Tera Guru

Can someone please explain what these 2 attributes are actually tracking and where these numbers are being generated from?   I have attached a screen shot.

Thanks,

John

22 REPLIES 22

Chuck,




Why are the hours so off from one another? Even states that are awaiting vendor or assigned have different hours.




Thanks,



John


Where do you set this "Default" Calendar/Schedule?


Thanks,


ML


Apparently, this is now deprecated.   Maybe ctomasi will be better to answer these questions.


Schedules are held in cmn_schedule. There is no 'default' that I am aware. They are called explicitly from scripts (when using the GlideSchedule class).



ServiceNow Developers


Thanks for the reply Chuck...but...



calDateDiff: Calculate the difference between two dates using the default calendar.



if (dataChange || current.business_duration.nil())


  current.business_duration = gs.calDateDiff(opened, closed, false);



Indicates a "default" calendar is used...and in the code:



if (dataChange || current.business_duration.nil())
current.business_duration = gs.calDateDiff(opened, closed, false);


it doesn't appear any calendar/schedule is explicitly implied...?????


Thoughts?



I've got users asking and when trying to calculate to confirm I'm not sure which cal/sched to use....



Thanks again.


ML