TimeWithZone.AdjustToTimeZone MethodTimeWithZone.AdjustToTimeZone MethodTimeWithZone::AdjustToTimeZone Method

Adjusts a TimeWithZoneTimeWithZoneTimeWithZone structure to a specific time zone, or to no time zone.

Syntax

Public Function AdjustToTimeZone( _
    timeZone As Nullable(Of TimeZone) _
) As TimeWithZone
public TimeWithZone AdjustToTimeZone(
    Nullable<TimeZone> timeZone
)
public:
TimeWithZone AdjustToTimeZone(
    Nullable<TimeZone> timeZone
)
 

Parameters

timeZone

Type: System.Nullable<T>System.Nullable(Of T)System::Nullable<T>

The time zone that this instance should be adjusted to, or null a null reference (Nothing in Visual Basic) nullptr if this instance is to be adjusted to no time zone.

Return Value

Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone

The same point in time in the provided time zone, or with no time zone if timeZone is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

This function is analogous to the fn:adjust-time-to-timezone function.