![]() | Project DemoCheck out the gitHub project at:http://github.com/SalesforceFoundation/ApexDoc |
Show: global public webService | |
BusinessHoursService@description Uses the native Salesforce BusinessHours.diff() method to calculate the time difference between two datetime values within defined business hours. This implementation respects actual BusinessHours configurations in Salesforce, including working hours and linked holidays. Methods
calculateDiffDelegates the business hours calculation to the native BusinessHours.diff method. Parameters businessHoursId The ID of the BusinessHours definition to use. startTime The starting datetime. endTime The ending datetime. Return Value The number of milliseconds between start and end time, considering business hours. |