public sealed class TimeOfDay : IMessage<TimeOfDay>, IEquatable<TimeOfDay>, IDeepCloneable<TimeOfDay>, IBufferMessage, IMessage
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
[[["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\u003e\u003ccode\u003eTimeOfDay\u003c/code\u003e is a class representing a specific time of day, independent of date or time zone, with potential support for leap seconds.\u003c/p\u003e\n"],["\u003cp\u003eIt implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for various operations like cloning and comparing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimeOfDay\u003c/code\u003e class provides properties to set and retrieve the \u003ccode\u003eHours\u003c/code\u003e (0-23), \u003ccode\u003eMinutes\u003c/code\u003e (0-59), \u003ccode\u003eSeconds\u003c/code\u003e (0-59, or 60 for leap seconds), and \u003ccode\u003eNanos\u003c/code\u003e (0-999,999,999) of the time.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods to perform operations such as calculating the message size (\u003ccode\u003eCalculateSize\u003c/code\u003e), creating a deep clone (\u003ccode\u003eClone\u003c/code\u003e), comparing objects (\u003ccode\u003eEquals\u003c/code\u003e), and merging data from streams or other \u003ccode\u003eTimeOfDay\u003c/code\u003e instances (\u003ccode\u003eMergeFrom\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# Class TimeOfDay (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeOfDay)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Type.TimeOfDay)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Type.TimeOfDay)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Type.TimeOfDay) \n\n public sealed class TimeOfDay : IMessage\u003cTimeOfDay\u003e, IEquatable\u003cTimeOfDay\u003e, IDeepCloneable\u003cTimeOfDay\u003e, IBufferMessage, IMessage\n\nRepresents a time of day. The date and time zone are either not significant\nor are specified elsewhere. An API may choose to allow leap seconds. Related\ntypes are \\[google.type.Date\\]\\[google.type.Date\\] and\n`google.protobuf.Timestamp`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TimeOfDay \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TimeOfDay](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeOfDay), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TimeOfDay](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeOfDay), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TimeOfDay](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeOfDay), [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### TimeOfDay()\n\n public TimeOfDay()\n\n### TimeOfDay(TimeOfDay)\n\n public TimeOfDay(TimeOfDay other)\n\nFields\n------\n\n### HoursFieldNumber\n\n public const int HoursFieldNumber = 1\n\nField number for the \"hours\" field.\n\n### MinutesFieldNumber\n\n public const int MinutesFieldNumber = 2\n\nField number for the \"minutes\" field.\n\n### NanosFieldNumber\n\n public const int NanosFieldNumber = 4\n\nField number for the \"nanos\" field.\n\n### SecondsFieldNumber\n\n public const int SecondsFieldNumber = 3\n\nField number for the \"seconds\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Hours\n\n public int Hours { get; set; }\n\nHours of day in 24 hour format. Should be from 0 to 23. An API may choose\nto allow the value \"24:00:00\" for scenarios like business closing time.\n\n### Minutes\n\n public int Minutes { get; set; }\n\nMinutes of hour of day. Must be from 0 to 59.\n\n### Nanos\n\n public int Nanos { get; set; }\n\nFractions of seconds in nanoseconds. Must be from 0 to 999,999,999.\n\n### Parser\n\n public static MessageParser\u003cTimeOfDay\u003e Parser { get; }\n\n### Seconds\n\n public int Seconds { get; set; }\n\nSeconds of minutes of the time. Must normally be from 0 to 59. An API may\nallow the value 60 if it allows leap-seconds.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public TimeOfDay Clone()\n\n### Equals(TimeOfDay)\n\n public bool Equals(TimeOfDay 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(TimeOfDay)\n\n public void MergeFrom(TimeOfDay 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)"]]