Convert Milliseconds To Hours - CSharp System

CSharp examples for System:DateTime Second

Description

Convert Milliseconds To Hours

Demo Code


using System;/*from ww w  .j a v a  2 s.c om*/

public class Main{
        #endregion

        #region To hours
        public static double ConvertMillisecondsToHours(double milliseconds)
        {
            return TimeSpan.FromMilliseconds(milliseconds).TotalHours;
        }
}

Related Tutorials