Q:

Equivalent to Java's System.currentTimeMillis() in .NET?

Is there a .NET  equivalent to  Java's System.currentTimeMillis()?
I want to find the number of milliseconds since 1970.

A:

    Dim epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)
    Dim millis = CLng((DateTime.UtcNow - epoch).TotalMilliseconds)

