Examples of DOSTime


Examples of isi.pasco2.parser.time.DOSTime

    high = fr.readLittleEndianUInt();
    FileTime accessTime = new FileTime(low, high);

    int date = indexFile.readShortAtOffset(currrecoff + 0x50);
    int time = indexFile.readShortAtOffset(currrecoff + 0x52);
    DOSTime lastAccessTime = new DOSTime(date, time);

    int numberOfAccesses = indexFile.readIntAtOffset(currrecoff + 0x54);

    StringBuffer url = readURL(fr, currrecoff);
    //StringBuffer filename = readFileName(fr, currrecoff);
View Full Code Here

Examples of isi.pasco2.parser.time.DOSTime

        return new TestSuite(TestDOSTime.class);
    }
   
  public void testHexLittleEndian() {
    String hex = "F788F41E";
    DOSTime ft = DOSTime.parseLittleEndianHex(hex);
    //Sat, 30 September 2000 14:46:43  GMT
    assertEquals("1995-07-20T17:07:46.000Z", ft.toString());
   
    //Wed, 26 April 2000 22:58:55  GMT
    assertEquals("2000-01-31T15:21:44.000Z", DOSTime.parseLittleEndianHex("B67A3F28").toString());
    //Sat, 30 March 2002 05:15:11  GMT
    assertEquals("2001-10-12T22:10:02.000Z", DOSTime.parseLittleEndianHex("41B14C2B").toString());
View Full Code Here

Examples of isi.pasco2.parser.time.DOSTime

    assertEquals("2001-10-12T22:10:02.000Z", DOSTime.parseLittleEndianHex("41B14C2B").toString());
  }
 
  public void testCorrectLocal() {
   
    DOSTime ft = new DOSTime(13404, 1075);
    //Sat, 30 September 2000 14:46:43  GMT
    assertEquals("2006-02-28T00:33:38.000Z", ft.toString());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.