Convert Seconds To Hours - CSharp System

CSharp examples for System:DateTime Second

Description

Convert Seconds To Hours

Demo Code


using System;/*from  ww  w  .  j a v  a2s  .  co m*/

public class Main{
        public static double ConvertSecondsToHours(double seconds)
        {
            return TimeSpan.FromSeconds(seconds).TotalHours;
        }
}

Related Tutorials