...
Code Block | ||
---|---|---|
| ||
//Adds exactly 1 day, 2 hours, 30 minutes and 45 seconds to the current time. $Calendar.StandardCalendar.AddTimeSpanAsync(new DateTimeOffset(), '1.02:30:45').then(function(newDate) { console.log(newDate); }); |
...
Code Block | ||
---|---|---|
| ||
//Adds exactly 1 day, 2 hours, 30 minutes and 45 seconds to the current time. $Calendar.StandardCalendar.AddTimeSpanAsync(new DateTimeOffset(), '1.02:30:45').then(function(newDate) { console.log(newDate); }); |