Calendar: AddHours

AddHours

Returns a cDateTime this is the specified number of hours from the original Time.



 Public Function AddHours(
	  ByRef Time As Variant,
	  ByVal Hours As Long ) As cDateTime

Parameters

Time
[ByRef] Variant. The time to add the specified number of hours to.
Hours
[ByVal] Long. The number of hours to be added to Time. This can be negative.

Return Values

cDateTime -  Returns a cDateTime with the specified number of hours added.

Remarks

See Also

Project VBCorLib Overview Class Calendar Overview Calendar Properties Calendar Methods AddDays AddMilliseconds