• Post Reply Bookmark Topic Watch Topic
  • New Topic

File Creation Date  RSS feed

 
Eduardo Mathias
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
I'm not sure if this is really an intermediate question, but here I go:
- How can I get a File's creation date using Java ? I've read the Java API specification and there is just a method for retrieving the File last modified date !
Any help is welcome !
Thanx !
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is not with Java, it is the problem of the host operating systems. I GUESS that Java does take a common denominator approach though, so with java.io.File you can get the file's last modified time.
It doesn't help you much though, except to point you at looking for a "non-standard" solution. If I find something I'll post it here.
-Barry
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example here
[ December 26, 2002: Message edited by: Barry Gaunt ]
 
Eduardo Mathias
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot !!!
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
how amazing it is that two persons posted the same question on two different forums on the same day and with very narrow time gap!!
have a look at Post on I/O and Streams
thanks
maulin.
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!