Nevron Open Vision Documentation
Nevron.Nov Namespace / NTimeZone Class / FindByUtcOffsetAndDisplayName Method


In This Topic
    FindByUtcOffsetAndDisplayName Method
    In This Topic
    Retrieves a time zone by UTC offset and full or partial display name. Returns null if a time zone with the given UTC offset and display name is not registered.
    Syntax
    'Declaration
     
    
    Public Shared Function FindByUtcOffsetAndDisplayName( _
       ByVal utcOffset As System.TimeSpan, _
       ByVal displayName As System.String _
    ) As NTimeZone
    'Usage
     
    
    Dim utcOffset As System.TimeSpan
    Dim displayName As System.String
    Dim value As NTimeZone
     
    value = NTimeZone.FindByUtcOffsetAndDisplayName(utcOffset, displayName)
    public static NTimeZone FindByUtcOffsetAndDisplayName( 
       System.TimeSpan utcOffset,
       System.string displayName
    )

    Parameters

    utcOffset
    displayName
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also