long filetime = Filetime.dateToFileTime(d); if (Filetime.isUndefined(d)) { b.append("<undefined>"); } else if ((filetime >>> 32) == 0) {
public Date getJavaValue() { return filetimeToDate( fileTime ); }
public int write( OutputStream out ) throws IOException { out.write(toByteArray()); return LONG_SIZE; }
_value = new Filetime( data, offset ); return Filetime.SIZE;
/** * Return {@code true} if the date is undefined * * @param date the date * @return {@code true} if the date is undefined */ public static boolean isUndefined(Date date) { return (date == null || dateToFileTime(date) == 0); }
return filetime.getJavaValue();
_value = new Filetime( data, offset ); return Filetime.SIZE;
public Filetime( Date date ) { fileTime = dateToFileTime(date); }
return filetime.getJavaValue();
long filetime = Filetime.dateToFileTime(d); if (Filetime.isUndefined(d)) { b.append("<undefined>"); } else if ((filetime >>> 32) == 0) {
/** * Sets the total time spent in editing the document. * * @param time The time to set. */ public void setEditTime(final long time) { final Date d = Filetime.filetimeToDate(time); getFirstSection().setProperty(PropertyIDMap.PID_EDITTIME, Variant.VT_FILETIME, d); }
/** * Returns the total time spent in editing the document (or * {@code 0}). * * @return The total time spent in editing the document or 0 if the {@link * SummaryInformation} does not contain this information. */ public long getEditTime() { final Date d = (Date) getProperty(PropertyIDMap.PID_EDITTIME); if (d == null) { return 0; } return Filetime.dateToFileTime(d); }
public int write( OutputStream out ) throws IOException { out.write(toByteArray()); return LONG_SIZE; }