System::Globalization::Calendar::AddHours method

Calendar::AddHours method

Adds hours to time point.

virtual DateTime System::Globalization::Calendar::AddHours(DateTime time, int hours) const
ParameterTypeDescription
timeDateTimeOriginal time point value.
hoursintNumber of hours to add.

ReturnValue

Time point after calculation is done.

See Also