From Timestamp Milli Seconds - CSharp System

CSharp examples for System:DateTime Second

Description

From Timestamp Milli Seconds

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from  w w  w . j  ava  2s . co  m*/

public class Main{
        public static DateTimeOffset FromTimestampMilliSeconds(this ulong timestampMillisecond)
        {
            var date = unixEpochOffset.AddMilliseconds(timestampMillisecond);
            return date;
        }
        public static DateTimeOffset FromTimestampMilliSeconds(this long timestampMillisecond)
        {
            var date = unixEpochOffset.AddMilliseconds(timestampMillisecond);
            return date;
        }
}

Related Tutorials