root/šablona/funkce/src/cz/frantovo/xmlWebGenerator/Funkce.java
@
21:2f50f9e10a27
Revision 21:2f50f9e10a27, 308 bytes (checked in by František Kučera <franta-hg@…>, 13 years ago) |
---|
Rev | Line | |
---|---|---|
[6] | 1 | package cz.frantovo.xmlWebGenerator; |
2 | ||
3 | import java.io.File; | |
4 | import java.util.Date; | |
5 | import java.net.URI; | |
6 | import java.net.URISyntaxException; | |
7 | ||
8 | public class Funkce { | |
[21] | 9 | public static Date posledníZměna(String soubor) throws URISyntaxException { |
10 | return new Date(new File(new URI(soubor)).lastModified()); | |
11 | } | |
[6] | 12 | } |
13 |
Note: See TracBrowser
for help on using the browser.