Computer >> Computer tutorials >  >> Programming >> C#

C# TimeSpan Max value


Timespan shows the length of time.

To get the maximum value of TimeSpan, use the following property.

TimeSpan.MaxValue

Example

using System;
using System.Linq;
public class Demo {
   public static void Main() {
      Console.WriteLine(TimeSpan.MaxValue);
   }
}

Output

10675199.02:48:05.4775807