Check out example codes for "c# convert Unix time in seconds to datetime". It will help you in understanding the concepts better.
Code Example 1
public static DateTime UnixTimeStampToDateTime( double unixTimeStamp )
{
// Unix timestamp is seconds past epoch
System.DateTime dtDateTime = new DateTime(1970,1,1,0,0,0,0,System.DateTimeKind.Utc);
dtDateTime = dtDateTime.AddSeconds( unixTimeStamp ).ToLocalTime();
return dtDateTime;
}
Learn ReactJs, React Native from akashmittal.com