![]() ![]() ![]() Var duration = Duration.elapsedDays(5) duration.elapsedDays //-> 5 Work-Time ExampleĪssigning a duration of 12 work-hours to a new task: Var duration = Duration.workHours(15) duration.workSeconds //-> 54000 Create a Duration using Days Copy Create a duration instance for the passed-in year, month, and day.Įxamples Create a Duration using Hours Copy.Create a duration instance for the passed-in number of days.ĮlapsedYearMonthDay( years: Number, months: Number, days: Number) → ( Duration).Create a duration instance for the passed-in number of hours, minutes, and seconds.ĮlapsedDays( days: Number) → ( Duration).Create a duration instance for the passed-in number of hours using project schedule time.ĮlapsedHourMinSec( hours: Number, minutes: Number, seconds: Number) → ( Duration).Create a duration instance for the passed-in number of seconds using project schedule time.WorkSeconds( seconds: Number) → ( Duration) Use these functions to create instances of the Duration class in the desired format. Number of project schedule work-seconds of duration, for a duration measured in project time.įunctions for creating instances of the Duration class.Number of years, for a duration measured in elapsed time. ![]() Number of weeks, for a duration measured in elapsed time.ĮlapsedYears ( Number r/o).Number of seconds, for a duration measured in elapsed time.ĮlapsedWeeks ( Number r/o).Number of months, for a duration measured in elapsed time.ĮlapsedSeconds ( Number r/o).Number of minutes, for a duration measured in elapsed time.ĮlapsedMonths ( Number r/o).Number of hours, for a duration measured in elapsed time.ĮlapsedMinutes ( Number r/o).Number of days, for a duration measured in elapsed time.ĮlapsedHours ( Number r/o).A boolean value that indicates whether or not this duration is measured in project time or elapsed calendar time.ĮlapsedDays ( Number r/o).These can be used to retrieve the time values of duration objects in the desired format.Įlapsed ( Boolean r/o) The default is via project schedule, but scripts can create durations of either type when necessary. A duration is a value that can be measured via the project schedule components or via elapsed time. This same relationship applies to how time is displayed in OmniPlan. The smaller cups may take up more space on the counter but they contain the same amount of Jello as the larger cup - it’s the packaging that is different. To visualize the relationship between the two duration formats (work-time & elapsed-time), imagine you’ve mixed up a pint of Jello®! You can pour the mixture into either three small cups, or into one larger cup. This measure of time is called “elapsed-time” which is a single contiguous amount of time. However, some tasks, such as pouring and setting concrete, by nature require that their process be done in one pass, no matter how many contiguous hours that may require. And it is common for the time it takes to complete a task, to span multiple “work-days” which are comprised of a specified number of “work-hours” per overall day. ![]() The length of time required to complete OmniPlan projects is expressed in standard time increments, such as days, weeks, months, and years. The time represented by an instance of the Duration class is organized as either “project time” or “elapsed (contiguous) time.” In terms of OmniPlan projects, a duration is a specified amount of time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |