AddTimeSpanAsync¶
Adds a specified time span to a DateTimeOffset
value asynchronously.
1 |
|
Parameters¶
DateTimeOffset dateTime
Specifies the base DateTimeOffset
value.
string time
The time span to add, in the "d.hh:mm:ss" format.
Returns¶
A Promise that resolves to a new DateTimeOffset
value with the added time span.
Remarks¶
Ensure you are using the correct calendar object, as adding time is related to your calendar of choice. More information on calendar definitions can be found in the $Calendar
object documentation.
Example¶
1 2 3 4 |
|