From Timestamp Seconds - CSharp System

CSharp examples for System:DateTime Second

Description

From Timestamp Seconds

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from w  w  w .ja v  a 2s  . com

public class Main{
        public static DateTimeOffset FromTimestampSeconds(this ulong timestampSecond)
        {
            var date = unixEpochOffset.AddSeconds(timestampSecond);
            return date;
        }
        public static DateTimeOffset FromTimestampSeconds(this long timestampSecond)
        {
            var date = unixEpochOffset.AddSeconds(timestampSecond);
            return date;
        }
}

Related Tutorials