[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides detailed information about the \u003ccode\u003eTimeZone\u003c/code\u003e class within the \u003ccode\u003eGoogle.Type\u003c/code\u003e namespace, specifically in the \u003ccode\u003eGoogle.Api.CommonProtos.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimeZone\u003c/code\u003e class represents a time zone as defined by the IANA Time Zone Database, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eTimeZone\u003c/code\u003e class include \u003ccode\u003eId\u003c/code\u003e, representing the IANA time zone (e.g., "America/New_York"), and \u003ccode\u003eVersion\u003c/code\u003e, which is an optional field indicating the IANA Time Zone Database version number.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimeZone\u003c/code\u003e class includes methods for managing data, such as \u003ccode\u003eCalculateSize()\u003c/code\u003e, \u003ccode\u003eClone()\u003c/code\u003e, \u003ccode\u003eMergeFrom()\u003c/code\u003e, \u003ccode\u003eWriteTo()\u003c/code\u003e, and methods from the object class like \u003ccode\u003eEquals()\u003c/code\u003e and \u003ccode\u003eGetHashCode()\u003c/code\u003e, along with constructors to either create a new instance or a copy.\u003c/p\u003e\n"],["\u003cp\u003eThere are three listed versions of the Google.Type.TimeZone, with the latest being 2.15.0.\u003c/p\u003e\n"]]],[],null,["# Class TimeZone (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeZone)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Type.TimeZone)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Type.TimeZone)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Type.TimeZone) \n\n public sealed class TimeZone : IMessage\u003cTimeZone\u003e, IEquatable\u003cTimeZone\u003e, IDeepCloneable\u003cTimeZone\u003e, IBufferMessage, IMessage\n\nRepresents a time zone from the\n[IANA Time Zone Database](https://www.iana.org/time-zones). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TimeZone \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TimeZone](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeZone), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TimeZone](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeZone), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TimeZone](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeZone), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Type](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### TimeZone()\n\n public TimeZone()\n\n### TimeZone(TimeZone)\n\n public TimeZone(TimeZone other)\n\nFields\n------\n\n### IdFieldNumber\n\n public const int IdFieldNumber = 1\n\nField number for the \"id\" field.\n\n### VersionFieldNumber\n\n public const int VersionFieldNumber = 2\n\nField number for the \"version\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Id\n\n public string Id { get; set; }\n\nIANA Time Zone Database time zone, e.g. \"America/New_York\".\n\n### Parser\n\n public static MessageParser\u003cTimeZone\u003e Parser { get; }\n\n### Version\n\n public string Version { get; set; }\n\nOptional. IANA Time Zone Database version number, e.g. \"2019a\".\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public TimeZone Clone()\n\n### Equals(TimeZone)\n\n public bool Equals(TimeZone other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### MergeFrom(TimeZone)\n\n public void MergeFrom(TimeZone other)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]