On Tue, 2 Mar 2010 20:09:39 +1300, "Peter K"<peter@parcelvej.dk>
wrote, quoted or indirectly quoted someone who said :
Now I am writing a java application, which collects data and writes it to
the database for the c# application to read. So how do I convert a java
"Date" to a value which the c# application can interpret as "ticks"?
There are so many definitions of "ticks".
AT ticks were in the neighbourhood of 20 ms.
Dates are just a wrapper around a long ms since 1970-01-01
You might have a look at the code in FileTimes
http://mindprod.com/products.html#FILETIMES
which interconverts between Java-ticks and MS file timestamp ticks.
Java timestamps use 64-bit milliseconds since 1970 GMT. Windows
timestamps use 64-bit value representing the
number of 100-nanosecond intervals since January 1, 1601, with ten
thousand times as much precision.
and that is year 0001 based not 1601 based.