Check out example codes for "unix time c#". It will help you in understanding the concepts better.

Code Example 1

Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;

Learn ReactJs, React Native from akashmittal.com