Hours of TimeSpan - CSharp System

CSharp examples for System:TimeSpan

Description

Hours of TimeSpan

Demo Code


using System;//from   w ww.ja  v a  2 s.  c  o  m

public class Main{
        public static TimeSpan Hours(this int span)
        {
            return new TimeSpan(span, 0, 0);
        }
}

Related Tutorials