Parse Epoch Date Time - CSharp System

CSharp examples for System:DateTime

Description

Parse Epoch Date Time

Demo Code


using System;/*  w ww  .j ava 2s  . c om*/

public class Main{
        public static DateTime ParseEpochDateTime(long epochDateTime) {
            return new DateTime(1970, 1, 1).AddSeconds(epochDateTime);
        }
}

Related Tutorials