Originally posted by bart zagers:
The question is, do you really need millisecond precision?
As far as I know, even Windows does not give you really millisecond precision, but only an "approximation".
It might not be of much relevance to Rajesh, while his question doesn't support that idea too much, but the
java documentation claims:
Returns:
A long value representing the time the file was last modified,
measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970),
or 0L if the file does not exist or if an I/O error occurs
which is simply wrong.
It doesn't.
java.io.File.lastModified itself calls java.io.FileSystem.getLastModifiedTime (File f)
But I don't have the source of the native implementation.
Perhaps I should
[ February 15, 2008: Message edited by: Stefan Wagner ]