Convert Seconds To Milliseconds - CSharp System

CSharp examples for System:DateTime Second

Description

Convert Seconds To Milliseconds

Demo Code


using System;// w w w  . ja  v  a2 s.  c  o  m

public class Main{
        public static double ConvertSecondsToMilliseconds(double seconds)
        {
            return TimeSpan.FromSeconds(seconds).TotalMilliseconds;
        }
}

Related Tutorials