C# TimeSpan Max value

CsharpProgrammingServer Side Programming

Timespan shows the length of time.

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

TimeSpan.MaxValue

Example

 Live Demo

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

Output

10675199.02:48:05.4775807
raja
Published on 12-Sep-2018 12:18:50
Advertisements