DateWithZone.AdjustToTimeZone MethodDateWithZone.AdjustToTimeZone MethodDateWithZone::AdjustToTimeZone Method

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

Syntax

Public Function AdjustToTimeZone( _
    timeZone As Nullable(Of TimeZone) _
) As DateWithZone
public DateWithZone AdjustToTimeZone(
    Nullable<TimeZone> timeZone
)
public:
DateWithZone 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.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone

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.

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.

Remarks

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