Recently in C# Category

You can do this in several different ways, I have seen some use the TimeSpan class but this served me fine:

DateTime baseTime = new DateTime(1970, 1, 1, 0, 0, 0);
DateTime nowInUTC = DateTime.UtcNow;
Console.WriteLine((nowInUTC - baseTime).Ticks / 10000);

I use this when appending timestamps to files.

About this Archive

This page is a archive of recent entries in the C# category.

Botnets is the previous category.

Forensics is the next category.

Find recent content on the main index or look in the archives to find all content.