Convert Seconds To Days - CSharp System

CSharp examples for System:DateTime Day

Description

Convert Seconds To Days

Demo Code


using System;/*w w w  . java  2  s. co m*/

public class Main{
        public static double ConvertSecondsToDays(double seconds)
        {
            return TimeSpan.FromSeconds(seconds).TotalDays;
        }
}

Related Tutorials