public static FromUnixEpochSeconds ( this unixEpochSeconds ) : System.DateTime | ||
unixEpochSeconds | this | |
return | System.DateTime |
public static DateTime FromUnixEpochSeconds(this double unixEpochSeconds)
{
var dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
return dtDateTime.AddSeconds(unixEpochSeconds).ToLocalTime();
}
}