Lines Matching refs:year
58 unsigned year, mon, day, hour, min, sec; in FileTimeToDosTime()
74 year = (unsigned)(kFileTimeStartYear + v / PERIOD_400 * 400); in FileTimeToDosTime()
80 year += temp * 100; in FileTimeToDosTime()
86 year += temp * 4; in FileTimeToDosTime()
92 year += temp; in FileTimeToDosTime()
95 if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) in FileTimeToDosTime()
107 if (year < kDosTimeStartYear) in FileTimeToDosTime()
109 year -= kDosTimeStartYear; in FileTimeToDosTime()
111 if (year >= 128) in FileTimeToDosTime()
113 dosTime = (year << 25) | (mon << 21) | (day << 16) | (hour << 11) | (min << 5) | (sec >> 1); in FileTimeToDosTime()
169 bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, in GetSecondsSince1601() argument
173 if (year < kFileTimeStartYear || year >= 10000 || month < 1 || month > 12 || in GetSecondsSince1601()
176 UInt32 numYears = year - kFileTimeStartYear; in GetSecondsSince1601()
179 if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) in GetSecondsSince1601()