Convert Minutes To Hours - CSharp System

CSharp examples for System:DateTime Hour

Description

Convert Minutes To Hours

Demo Code


using System;/*from ww w  .j a va  2  s . c  o  m*/

public class Main{
        public static double ConvertMinutesToHours(double minutes)
        {
            return TimeSpan.FromMinutes(minutes).TotalHours;
        }
}

Related Tutorials