C# TimeSpan Max value


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

Updated on: 23-Jun-2020

548 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements