Calendar.SubtractAsync
Overview
Subtracts specified number of hours from specified date time value and returns.
Promise<number> myCalendar.SubtractAsync(start:
DateTimeOffset, end:
DateTimeOffset)
Arguments
DateTimeOffset start
Specifies the base date time value.
DateTimeOffset end
Specifies the date time value that will be subtracted from start parameter.
Returns
The number of hours between start and end parameters.
var hours = await $Calendar.SubtractAsync(DateTimeOffset.parse('2017-01-25T15:00'), DateTimeOffset.parse('2017-01-25T13:00'));
// hours will be set to 2
Copyright © 2010 - 2023 Emakin. All rights reserved.