ToOffset()

DateTimeOffset::ToOffset(TimeSpan) const method

Replace current object offset by the specified offset.

DateTimeOffset System::DateTimeOffset::ToOffset(TimeSpan offset) const

Arguments

ParameterTypeDescription
offsetTimeSpanUTC-offset.

Return Value

Current DateTimeOffset object converted to the date and time with specified offset.

See Also