"MrNobody" wrote...
>I think what you want is:
DateTime.Now.Ticks
But it's not that simple...
There's at least three things to consider here:
1. DateTime.Ticks is in *100ds of nanoseconds*, not milliseconds.
2. A major difference between the Java way and the .NET way of handling
dates is that DateTime.Now yields a *local* date, while the Java Date
internally is a UTC date. This means that you want to use the
DateTime.UtcNow.Ticks instead.
3. But this isn't enough to compare with the milliseconds in the Java Date,
as Java and .NET uses different epochs; Java uses 1970-01-01, while .NET
uses 0001-01-01
/// Bjorn A