Syntax:
TimeSpan TimeSpan.FromMinutes(double mins);
Parameter(s):
- mins: A specified number of minutes.
Return value:
This method returns the object of TimeSpan object which is used to represent a specified number of minutes that are accurate to the nearest millisecond.
Exception(s):
- System.OverflowException
- System.ArgumentException
-
Program:
The source code to demonstrate the use of FromMinutes() method of TimeSpan structure is given below. The given program is compiled and executed successfully.
Output: