Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DateTimeOffset Calendar.AddTimeSpan(datedateTime: DateTimeOffset, timeduration: string)

Arguments

Specifies the base date time value.
string duration
The time parameter is in the "d.hh:mm:ss" or ,ISO-8601, duration format

Example

Code Block
languagejs
//Adds exactly 1 day, 2 hours, 30 minutes and 45 seconds to the current time.
var newDate = $Calendar.StandardCalendar.AddTimeSpan($Calendar.Today, '1.02:30:45');
var newDate = $Calendar.StandardCalendar.AddTimeSpan($Calendar.Today, 'P1DT2H');

...