Convert Hours To Milliseconds - CSharp System

CSharp examples for System:DateTime Second

Description

Convert Hours To Milliseconds

Demo Code


using System;/*  www  .  j a v a2  s .  c o m*/

public class Main{
        public static double ConvertHoursToMilliseconds(double hours)
        {
            return TimeSpan.FromHours(hours).TotalMilliseconds;
        }
}

Related Tutorials