Home
last modified time | relevance | path

Searched refs:dosTime (Results 1 – 3 of 3) sorted by relevance

/external/lzma/CPP/Windows/
DTimeUtils.cpp19 bool DosTimeToFileTime(UInt32 dosTime, FILETIME &ft) throw() in DosTimeToFileTime() argument
22 …return BOOLToBool(::DosDateTimeToFileTime((UInt16)(dosTime >> 16), (UInt16)(dosTime & 0xFFFF), &ft… in DosTimeToFileTime()
27 …if (!GetSecondsSince1601(kDosTimeStartYear + (dosTime >> 25), (dosTime >> 21) & 0xF, (dosTime >> 1… in DosTimeToFileTime()
28 (dosTime >> 11) & 0x1F, (dosTime >> 5) & 0x3F, (dosTime & 0x1F) * 2, res)) in DosTimeToFileTime()
44 bool FileTimeToDosTime(const FILETIME &ft, UInt32 &dosTime) throw() in FileTimeToDosTime() argument
51 dosTime = (ft.dwHighDateTime >= 0x01C00000) ? kHighDosTime : kLowDosTime; in FileTimeToDosTime()
54 dosTime = (((UInt32)datePart) << 16) + timePart; in FileTimeToDosTime()
106 dosTime = kLowDosTime; in FileTimeToDosTime()
110 dosTime = kHighDosTime; in FileTimeToDosTime()
113 dosTime = (year << 25) | (mon << 21) | (day << 16) | (hour << 11) | (min << 5) | (sec >> 1); in FileTimeToDosTime()
DTimeUtils.h12 bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime) throw();
13 bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime) throw();
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipUtil.java203 final long dosTime = zipDosTime.getValue(); in fromDosTime() local
204 return new Date(dosToJavaTime(dosTime)); in fromDosTime()
213 public static long dosToJavaTime(final long dosTime) { in dosToJavaTime() argument
216 cal.set(Calendar.YEAR, (int) ((dosTime >> 25) & 0x7f) + 1980); in dosToJavaTime()
217 cal.set(Calendar.MONTH, (int) ((dosTime >> 21) & 0x0f) - 1); in dosToJavaTime()
218 cal.set(Calendar.DATE, (int) (dosTime >> 16) & 0x1f); in dosToJavaTime()
219 cal.set(Calendar.HOUR_OF_DAY, (int) (dosTime >> 11) & 0x1f); in dosToJavaTime()
220 cal.set(Calendar.MINUTE, (int) (dosTime >> 5) & 0x3f); in dosToJavaTime()
221 cal.set(Calendar.SECOND, (int) (dosTime << 1) & 0x3e); in dosToJavaTime()