Convert Hours To Minutes - CSharp System

CSharp examples for System:DateTime Hour

Description

Convert Hours To Minutes

Demo Code


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

public class Main{
        public static double ConvertHoursToMinutes(double hours)
        {
            return TimeSpan.FromHours(hours).TotalMinutes;
        }
}

Related Tutorials