public sealed class SchedulingDuration : IMessage<SchedulingDuration>, IEquatable<SchedulingDuration>, IDeepCloneable<SchedulingDuration>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup and DR Service v1 API class SchedulingDuration.
A SchedulingDuration represents a fixed-length span of time represented
as a count of seconds and fractions of seconds at nanosecond
resolution. It is independent of any calendar and concepts like "day"
or "month". Range is approximately 10,000 years.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eSchedulingDuration\u003c/code\u003e class within the Google Cloud Backup and DR Service v1 API, covering its structure and functionality.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSchedulingDuration\u003c/code\u003e is a class that represents a time span with nanosecond resolution, independent of calendar concepts, with a range of approximately 10,000 years, and it can be instantiated with or without a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, ensuring compatibility and extending its functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSchedulingDuration\u003c/code\u003e class has properties, including \u003ccode\u003eHasNanos\u003c/code\u003e, \u003ccode\u003eHasSeconds\u003c/code\u003e, \u003ccode\u003eNanos\u003c/code\u003e, and \u003ccode\u003eSeconds\u003c/code\u003e, to handle the storage of both second and nanosecond time span components.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple available versions of \u003ccode\u003eSchedulingDuration\u003c/code\u003e, with the latest version being 2.1.0, and you can find older version docs back to version 1.0.0-beta02.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class SchedulingDuration (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.SchedulingDuration)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.SchedulingDuration)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.SchedulingDuration)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.SchedulingDuration)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.SchedulingDuration)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.SchedulingDuration) \n\n public sealed class SchedulingDuration : IMessage\u003cSchedulingDuration\u003e, IEquatable\u003cSchedulingDuration\u003e, IDeepCloneable\u003cSchedulingDuration\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class SchedulingDuration.\n\nA SchedulingDuration represents a fixed-length span of time represented\nas a count of seconds and fractions of seconds at nanosecond\nresolution. It is independent of any calendar and concepts like \"day\"\nor \"month\". Range is approximately 10,000 years. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SchedulingDuration \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SchedulingDuration](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.SchedulingDuration), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SchedulingDuration](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.SchedulingDuration), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SchedulingDuration](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.SchedulingDuration), [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.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.BackupDR.V1](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BackupDR.V1.dll\n\nConstructors\n------------\n\n### SchedulingDuration()\n\n public SchedulingDuration()\n\n### SchedulingDuration(SchedulingDuration)\n\n public SchedulingDuration(SchedulingDuration other)\n\nProperties\n----------\n\n### HasNanos\n\n public bool HasNanos { get; }\n\nGets whether the \"nanos\" field is set\n\n### HasSeconds\n\n public bool HasSeconds { get; }\n\nGets whether the \"seconds\" field is set\n\n### Nanos\n\n public int Nanos { get; set; }\n\nOptional. Span of time that's a fraction of a second at nanosecond\nresolution.\n\n### Seconds\n\n public long Seconds { get; set; }\n\nOptional. Span of time at a resolution of a second."]]