M
Marc Mendez
Hi,
Under W2003 (and once under XP Pro), I can't get the right last modified
date of a file.
I use :
long lastmodified = file.lastModified();
long currentTime = new GregorianCalendar().getTimeInMillis();
to know how long a file was changed.
To trace the routine, I do :
log.println("Last modified date : " + lastmodified);
GregorianCalendar t = new GregorianCalendar();
t.setTimeInMillis(lastmodified);
log.println("Last modified date (readable) :
"+t.get(Calendar.DAY_OF_MONTH)+"/"+t.get(Calendar.MONTH)+"/"+t.get(Calendar.YEAR));
log.println("Current date : " + currentTime);
A file modified on 16/07/2007 looks modified on le
16/06/2007 ! I use JRE 1.4.2. On my home computer (XP Pro), no problem.
Any idea ?
Under W2003 (and once under XP Pro), I can't get the right last modified
date of a file.
I use :
long lastmodified = file.lastModified();
long currentTime = new GregorianCalendar().getTimeInMillis();
to know how long a file was changed.
To trace the routine, I do :
log.println("Last modified date : " + lastmodified);
GregorianCalendar t = new GregorianCalendar();
t.setTimeInMillis(lastmodified);
log.println("Last modified date (readable) :
"+t.get(Calendar.DAY_OF_MONTH)+"/"+t.get(Calendar.MONTH)+"/"+t.get(Calendar.YEAR));
log.println("Current date : " + currentTime);
A file modified on 16/07/2007 looks modified on le
16/06/2007 ! I use JRE 1.4.2. On my home computer (XP Pro), no problem.
Any idea ?