WorkCalendarSched.schedTime Method [AX 2012]
Schedules forward or backward from a given date by a given number of seconds.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
public utcdatetime schedTime(
SchedDirection _schedDirection,
utcdatetime _schedDateTimeFrom,
real _seconds,
CalendarDays _calendarDays,
CalendarId _calendarId,
[boolean _useEffectivity,
utcdatetime _limitDateTime])
Microsoft Dynamics AX 2012 R2 (SYS)
public utcdatetime schedTime(
SchedDirection _schedDirection,
utcdatetime _schedDateTimeFrom,
real _seconds,
CalendarDays _calendarDays,
CalendarId _calendarId,
[boolean _useEffectivity,
utcdatetime _limitDateTime])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public utcdatetime schedTime(
SchedDirection _schedDirection,
utcdatetime _schedDateTimeFrom,
Seconds _seconds,
CalendarDays _calendarDays,
CalendarId _calendarId,
[boolean _useEffectivity,
utcdatetime _limitDateTime])
Microsoft Dynamics AX 2012 (FPK)
public utcdatetime schedTime(
SchedDirection _schedDirection,
utcdatetime _schedDateTimeFrom,
Seconds _seconds,
CalendarDays _calendarDays,
CalendarId _calendarId,
[boolean _useEffectivity,
utcdatetime _limitDateTime])
Microsoft Dynamics AX 2012 (SYS)
public utcdatetime schedTime(
SchedDirection _schedDirection,
utcdatetime _schedDateTimeFrom,
Seconds _seconds,
CalendarDays _calendarDays,
CalendarId _calendarId,
[boolean _useEffectivity,
utcdatetime _limitDateTime])
Run On
Called
Parameters
- _schedDirection
Type: SchedDirection Enumeration
The scheduling direction.
- _schedDateTimeFrom
Type: utcdatetime
The date and time to schedule from.
- _seconds
Type: real
The number of seconds to schedule forward or backward from the schedule date and time.
- _calendarDays
Type: CalendarDays Extended Data Type
A Boolean value that indicates whether the scheduling must consider the calendar or not.
- _calendarId
Type: CalendarId Extended Data Type
The calendar that is used to determine the result.
- _useEffectivity
Type: boolean
A Boolean value that indicates whether the effectivity defined on the calendar must be considered; optional.
- _limitDateTime
Type: utcdatetime
Return Value
Type: utcdatetime
The scheduling result.