Convert Milliseconds To Minutes - CSharp System

CSharp examples for System:DateTime Second

Description

Convert Milliseconds To Minutes

Demo Code


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

public class Main{
        #endregion

        #region To minutes
        public static double ConvertMillisecondsToMinutes(double milliseconds)
        {
            return TimeSpan.FromMilliseconds(milliseconds).TotalMinutes;
        }
}

Related Tutorials