WorkCalendarDate::calcDefinedSeconds Method
Gets the number of working hours, in seconds, for the calendar date.
Syntax
server public static Seconds calcDefinedSeconds(
CalendarId _calendar,
TransDate _transDate,
[Seconds _fromTime,
Seconds _toTime,
boolean _useEffectivity,
boolean _throwIfError])
Run On
Server
Parameters
- _calendar
Type: CalendarId Extended Data Type
The ID of the calendar.
- _transDate
Type: TransDate Extended Data Type
The date for which to get the working hours.
- _fromTime
Type: Seconds Extended Data Type
The start time to use to get the working hours; optional.
- _toTime
Type: Seconds Extended Data Type
The end time to use to get the working hours; optional.
- _useEffectivity
Type: boolean
A Boolean value that indicates whether to include the efficiency percentage in the calculation; optional.
- _throwIfError
Type: boolean
A Boolean value that indicates whether to throw an error if no calendar entry was found on the date; optional.
Return Value
Type: Seconds Extended Data Type
Gets the number of working hours, in seconds, for the calendar date.