- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for readFiletime (0.1 seconds)
-
src/main/java/jcifs/pac/PacDataInputStream.java
/** * Reads a Windows FILETIME value and converts it to a Date. * @return the Date object, or null if the time represents infinity * @throws IOException if an I/O error occurs */ public Date readFiletime() throws IOException { Date date = null; final long last = readUnsignedInt(); final long first = readUnsignedInt(); if (first != 0x7fffffffL && last != 0xffffffffL) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacLogonInfo.java
// Dates this.logonTime = pacStream.readFiletime(); this.logoffTime = pacStream.readFiletime(); this.kickOffTime = pacStream.readFiletime(); this.pwdLastChangeTime = pacStream.readFiletime(); this.pwdCanChangeTime = pacStream.readFiletime(); this.pwdMustChangeTime = pacStream.readFiletime(); // User related strings as UnicodeStringsCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 14.3K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
data[5] = (byte) (high >> 8); data[6] = (byte) (high >> 16); data[7] = (byte) (high >> 24); PacDataInputStream pdis = createInputStream(data); Date date = pdis.readFiletime(); assertNotNull(date); // Allow for a small difference due to precision loss assertEquals(time / 1000, date.getTime() / 1000); // Test with null date (0x7fffffff ffffffff)
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); PacDataInputStream pacStream = new PacDataInputStream(bais); Date date = pacStream.readFiletime(); assertNotNull(date); // The date should be around 1970 (allowing for some conversion differences) assertTrue(date.getYear() + 1900 >= 1969 && date.getYear() + 1900 <= 1971); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0)