AddHours()

Calendar::AddHours(DateTime, int) const method

Adds hours to time point.

virtual DateTime System::Globalization::Calendar::AddHours(DateTime time, int hours) const

Arguments

ParameterTypeDescription
timeDateTimeOriginal time point value.
hoursintNumber of hours to add.

Return Value

Time point after calculation is done.

See Also