Product SiteDocumentation Site

5.4.3.28. addHours


>>-addHours(hours)------------------------------------------><

Adds hours to the TimeSpan object, returning a new TimeSpan instance. The receiver TimeSpan object is unchanged. The hours value must be a valid number, including fractional values. Negative values result in hours being subtracted from the TimeSpan value.