adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / DateTimeHandling Class / ConvertTimeZone Method / ConvertTimeZone(DateTime,TimeSpan) Method
The date/time to convert (assumed to be in the local time zone)
The time zone bias to convert to


In This Topic
    ConvertTimeZone(DateTime,TimeSpan) Method
    In This Topic
    Converts a DateTime from one time zone to another
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Overloads Shared Function ConvertTimeZone( _
       ByVal src As Date, _
       ByVal targetTZBias As TimeSpan _
    ) As Date
    [Pure()]
    public static DateTime ConvertTimeZone( 
       DateTime src,
       TimeSpan targetTZBias
    )
    [Pure()]
    public:
    static DateTime ConvertTimeZone( 
       DateTime src,
       TimeSpan targetTZBias
    ) 

    Parameters

    src
    The date/time to convert (assumed to be in the local time zone)
    targetTZBias
    The time zone bias to convert to
    Remarks
    This method assumes that src is in the current local time zone and uses CurrentTZBias to get that bias.
    See Also