Search Results for

    Show / Hide Table of Contents

    Class TimeZoneInfo

    Provides basic information about a time zone.

    Inheritance
    object
    TimeZoneInfo
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Nevatech.Vsb.Repository.Entities
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    [DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
    public sealed class TimeZoneInfo

    Constructors

    TimeZoneInfo()

    Initializes an empty instance.

    Declaration
    public TimeZoneInfo()

    Properties

    Id

    Gets or sets time zone identifier.

    Declaration
    [DataMember]
    public string Id { get; set; }
    Property Value
    Type Description
    string

    Name

    Gets or sets time zone display name.

    Declaration
    [DataMember]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    References

    Gets or sets the optional number of references pointing to this time zone in a specific scope.

    Declaration
    [DataMember(EmitDefaultValue = false)]
    public int? References { get; set; }
    Property Value
    Type Description
    int?

    UtcOffset

    Gets or sets time difference (in minutes) between the current time in the time zone and UTC.

    Declaration
    [DataMember]
    public TimeSpan UtcOffset { get; set; }
    Property Value
    Type Description
    TimeSpan

    Methods

    Create(string)

    Created TimeZoneInfo instance and populates it from the TimeZoneInfo corresponding to the provided identifier.

    Declaration
    public static TimeZoneInfo Create(string timeZoneId)
    Parameters
    Type Name Description
    string timeZoneId

    Identifier of the time zone.

    Returns
    Type Description
    TimeZoneInfo

    New instance of TimeZoneInfo instance and populates it from the TimeZoneInfo corresponding to the provided identifier.

    Create(TimeZoneInfo)

    Creates TimeZoneInfo from provided TimeZoneInfo.

    Declaration
    public static TimeZoneInfo Create(TimeZoneInfo zone)
    Parameters
    Type Name Description
    TimeZoneInfo zone

    TimeZoneInfo that will be used to populate new instance of the TimeZoneInfo.

    Returns
    Type Description
    TimeZoneInfo

    New instance of TimeZoneInfo populated from provided TimeZoneInfo.

    GetSystemTimeZones()

    Returns collection of all time zones in the system.

    Declaration
    [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
    public static Collection<TimeZoneInfo> GetSystemTimeZones()
    Returns
    Type Description
    Collection<TimeZoneInfo>

    Collection of all time zones in the system.

    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation