Net.Bluewalk.DotNetUtils/Extensions/LongExtensions.cs
/// <summary>
/// Creates DateTime from Unix Epoc time
/// </summary>
/// <param name="value">The value.</param>
/// <returns>DateTime.</returns>
Creates DateTime from Unix Epoc time
Creates DateTime from Unix Epoc time
public static DateTime FromEpochToDateTime(this long value)
        {
            var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
            return epoch.AddSeconds(value);
        }
public static DateTime FromEpochToDateTime ( this long value ) { var epoch = new DateTime ( 1970 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ; return epoch . AddSeconds ( value ) ; }
Creates DateTime from Unix Epoc time
Creates DateTime from Unix Epoc time
None
long
this
value
None