Convert Milliseconds To Seconds - CSharp System

CSharp examples for System:DateTime Second

Description

Convert Milliseconds To Seconds

Demo Code


using System;/*  ww  w .  j  av  a2  s.  co  m*/

public class Main{
        public static double ConvertMillisecondsToSeconds(double milliseconds)
        {
            return TimeSpan.FromMilliseconds(milliseconds).TotalSeconds;
        }
}

Related Tutorials