@Override public String toString() { return super.toString() + ": " + toDate().toString(); //$NON-NLS-1$ } }
if (isArray()) { WinBase.FILETIME resultFirst = Structure.newInstance(WinBase.FILETIME.class, field1.getPointer().getPointer(0)); resultFirst.read(); return resultFirst.toArray(Count); } else { WinBase.FILETIME result = new WinBase.FILETIME(field1.getPointer()); result.read(); return result;
public Date toDate() { return filetimeToDate(dwHighDateTime, dwLowDateTime); }
/** * <p>Converts this filetime into a number of milliseconds which have * passed since January 1, 1970 (UTC).</p> * @return This filetime as a number of milliseconds which have passed * since January 1, 1970 (UTC) */ public long toTime() { return toDate().getTime(); }
public FILETIME(Date date) { long rawValue = dateToFileTime(date); dwHighDateTime = (int)(rawValue >> 32 & 0xffffffffL); dwLowDateTime = (int)(rawValue & 0xffffffffL); }
public FILE_BASIC_INFO(FILETIME CreationTime, FILETIME LastAccessTime, FILETIME LastWriteTime, FILETIME ChangeTime, int FileAttributes) { this.CreationTime = new LARGE_INTEGER(CreationTime.toTime()); this.LastAccessTime = new LARGE_INTEGER(LastAccessTime.toTime()); this.LastWriteTime = new LARGE_INTEGER(LastWriteTime.toTime()); this.ChangeTime = new LARGE_INTEGER(ChangeTime.toTime()); this.FileAttributes = FileAttributes; write(); }
public String toString() { return super.toString() + ": " + toDate().toString(); //$NON-NLS-1$ } }
public long toLong() { return toDate().getTime(); }
public FILETIME(Pointer memory) { super(memory); read(); }
public FILETIME(Date date) { long rawValue = dateToFileTime(date); dwHighDateTime = (int)(rawValue >> 32 & 0xffffffffL); dwLowDateTime = (int)(rawValue & 0xffffffffL); }
public FILETIME(Pointer memory) { super(memory); read(); }
/** * <p>Converts this filetime into a {@link Date}</p> * @return The {@link Date} represented by this filetime. */ public Date toDate() { return filetimeToDate(dwHighDateTime, dwLowDateTime); }