Possible Duplicate:
C# DateTime.Ticks equivalent in Java
hello guys
can anybody tell me how to convert date to .Net ticks in java. any help will be appreciative.
thanks
Possible Duplicate:
C# DateTime.Ticks equivalent in Java
hello guys
can anybody tell me how to convert date to .Net ticks in java. any help will be appreciative.
thanks
You may also want to check the icu4j library from the ICU project especially the UniversalTimeScale class which is similar to .Net ticks.
DateTime.Ticks Property The value of this property is the number of 100-nanosecond intervals that have elapsed since 12:00 A.M., January 1, 0001.
Date.getTime() Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
Accounting for the 1970 years offset and multiplying by ten seems to be the solution.