Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- var stamp = TimeSpan.FromTicks(new DateTime(1970, 1, 1).Ticks).TotalMilliseconds;
- var now = TimeSpan.FromTicks(DateTime.Now.Ticks).TotalMilliseconds - stamp;
- var Time = new DateTime(1970, 1, 1).AddMilliseconds(now);
- Console.Write(Time);
- Console.Read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement