author | František Kučera <franta-hg@frantovo.cz> |
Mon, 04 Apr 2011 00:24:56 +0200 | |
changeset 13 | d5e9c879663e |
parent 6 | 801a8935caf7 |
child 21 | 2f50f9e10a27 |
permissions | -rw-r--r-- |
franta-hg@6 | 1 |
package cz.frantovo.xmlWebGenerator; |
franta-hg@6 | 2 |
|
franta-hg@6 | 3 |
import java.io.File; |
franta-hg@6 | 4 |
import java.util.Date; |
franta-hg@6 | 5 |
import java.net.URI; |
franta-hg@6 | 6 |
import java.net.URISyntaxException; |
franta-hg@6 | 7 |
|
franta-hg@6 | 8 |
public class Funkce { |
franta-hg@6 | 9 |
public static Date posledníZměna(String soubor) throws URISyntaxException { |
franta-hg@6 | 10 |
return new Date(new File(new URI(soubor)).lastModified()); |
franta-hg@6 | 11 |
} |
franta-hg@6 | 12 |
} |
franta-hg@6 | 13 |