Advertisement
tolikpunkoff

UnixTimeToDateTime

Aug 8th, 2018
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.18 KB | None | 0 0
  1. private DateTime UnixTimeToDateTime(double UnixTime)
  2.         {
  3.             DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0);
  4.             return origin.AddSeconds(UnixTime);
  5.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement