Convert Hours To Seconds - CSharp System

CSharp examples for System:DateTime Second

Description

Convert Hours To Seconds

Demo Code


using System;/*from w  w w  .  j  a  v  a 2 s.c  o  m*/

public class Main{
        public static double ConvertHoursToSeconds(double hours)
        {
            return TimeSpan.FromHours(hours).TotalSeconds;
        }
}

Related Tutorials