Lines Matching defs:ETime
62 efi_time(EFI_TIME *ETime)
105 if ( ETime->Year < 1998 || ETime->Year > 2099 ||
106 ETime->Month == 0 || ETime->Month > 12 ||
107 ETime->Day == 0 || ETime->Month > 31 ||
108 ETime->Hour > 23 ||
109 ETime->Minute > 59 ||
110 ETime->Second > 59 ||
111 ETime->TimeZone < -1440 ||
112 (ETime->TimeZone > 1440 && ETime->TimeZone != 2047) ) {
120 for (Year = 1970; Year != ETime->Year; ++Year) {
129 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY);
136 UTime += (((ETime->Day > 0) ? ETime->Day-1:0) * SECSPERDAY);
141 UTime += (ETime->Hour * SECSPERHOUR);
146 UTime += (ETime->Minute * 60);
151 UTime += ETime->Second;
157 if ( ETime->TimeZone != EFI_UNSPECIFIED_TIMEZONE ) {
161 UTime += (ETime->TimeZone * 60);