Returns a DateTime object for the number of ticks - CSharp System

CSharp examples for System:DateTime Calculate

Description

Returns a DateTime object for the number of ticks

Demo Code


using System.Collections;
using System;//www  .  java 2 s.c om

public class Main{
        /// <summary>
        /// Returns a DateTime object for the number of ticks
        /// </summary>
        public static DateTime FromTicks(long ticks) {
            return new DateTime(ticks);
        }
}

Related Tutorials