Standard.BaseDataTimeDurationDuration.newOn this pageDuration.new Duration.newhours minutes seconds milliseconds nanoseconds Group: DateTime Documentation Create a duration from time units. Arguments hours: hours minutes: minutes seconds: seconds milliseconds: milliseconds nanoseconds: nanoseconds Examples Duration of 2 hours.