Share via


WorkCalendarSched.schedTimeUTC Method [AX 2012]

Schedules a time that is 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 schedTimeUTC(
            SchedDirection _schedDirection, 
            utcdatetime _schedDateTimeFrom, 
            real _seconds, 
            CalendarDays _calendarDays, 
            CalendarId _calendarId, 
           [boolean _useEffectivity, 
            utcdatetime _limitDateTime])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public utcdatetime schedTimeUTC(
            SchedDirection _schedDirection, 
            utcdatetime _schedDateTimeFrom, 
            real _seconds, 
            CalendarDays _calendarDays, 
            CalendarId _calendarId, 
           [boolean _useEffectivity, 
            utcdatetime _limitDateTime])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public utcdatetime schedTimeUTC(
            SchedDirection _schedDirection, 
            utcdatetime _schedDateTimeFrom, 
            Seconds _seconds, 
            CalendarDays _calendarDays, 
            CalendarId _calendarId, 
           [boolean _useEffectivity, 
            utcdatetime _limitDateTime])

  Microsoft Dynamics AX 2012 (FPK)
          public utcdatetime schedTimeUTC(
            SchedDirection _schedDirection, 
            utcdatetime _schedDateTimeFrom, 
            Seconds _seconds, 
            CalendarDays _calendarDays, 
            CalendarId _calendarId, 
           [boolean _useEffectivity, 
            utcdatetime _limitDateTime])

  Microsoft Dynamics AX 2012 (SYS)
          public utcdatetime schedTimeUTC(
            SchedDirection _schedDirection, 
            utcdatetime _schedDateTimeFrom, 
            Seconds _seconds, 
            CalendarDays _calendarDays, 
            CalendarId _calendarId, 
           [boolean _useEffectivity, 
            utcdatetime _limitDateTime])

Run On

Called

Parameters

  • _schedDateTimeFrom
    Type: utcdatetime
    The UTC date and the time from which to schedule.
  • _seconds
    Type: real
    The number of seconds to schedule forward or backward from the schedule date and time.
  • _useEffectivity
    Type: boolean
    A Boolean value that indicates whether the effectivity that is defined on the calendar must be considered; optional.
  • _limitDateTime
    Type: utcdatetime
    A date and time value that defines where to stop a schedule if a time slot is not found; optional.

Return Value

Type: utcdatetime
The scheduling result as a UTC date and time.

Remarks

Calendars are related to the time zone of the company. This method applies the company time zone offset to the provided UTC date and removes it from the scheduling result to wrap the WorkCalendarSched.schedTime method.

See Also

Reference

WorkCalendarSched Class