GregorianCalendar: AddHours

AddHours

Adds a number of hours to the date provided.



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

Parameters

Time
[ByRef] Variant. A Date or cDateTime object to add a number of hours to.
Hours
[ByVal] Long. The number of hours to be added to the time portion of a date.

Return Values

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

Remarks

See Also

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