With Java version 1.4 you can now set the date as well with File.setLastModified ( long timestamp )
I have written FileTimes a native class for windows that lets you getYou can examine the date with File.lastModified() and set it in Java 1.4+ with File.setLastModified()
Windows keeps file timestamps accurate to 100 nanoseconds with 10,000 times as much precision as Java’s 1 ms. This means if you copy a file in Java, the new file might not have the exact same timestamp as the old. When you reconstitute a zipped file, its timestamp will be reconstituted accurate only to the even 2 seconds.
This page is posted
Optional Replicator mirror
Please read the feedback from other visitors, or send your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
Your face IP:[126.96.36.199]
You are visitor number|