Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | //===-- Definition of EFI_TIME type ---------------------------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIBC_TYPES_EFI_TIME_H |
| 10 | #define LLVM_LIBC_TYPES_EFI_TIME_H |
| 11 | |
| 12 | #include "../llvm-libc-macros/stdint-macros.h" |
| 13 | |
| 14 | typedef struct { |
| 15 | uint16_t Year; // 1900 - 9999 |
| 16 | uint8_t Month; // 1 - 12 |
| 17 | uint8_t Day; // 1 - 31 |
| 18 | uint8_t Hour; // 0 - 23 |
| 19 | uint8_t Minute; // 0 - 59 |
| 20 | uint8_t Second; // 0 - 59 |
| 21 | uint8_t Pad1; |
| 22 | uint32_t Nanosecond; // 0 - 999,999,999 |
| 23 | int16_t TimeZone; // --1440 to 1440 or 2047 |
| 24 | } EFI_TIME; |
| 25 | |
| 26 | #define EFI_TIME_ADJUST_DAYLIGHT 0x01 |
| 27 | #define EFI_TIME_IN_DAYLIGHT 0x02 |
| 28 | |
| 29 | #define EFI_UNSPECIFIED_TIMEZONE 0x07FF |
| 30 | |
| 31 | typedef struct { |
| 32 | uint32_t Resolution; |
| 33 | uint32_t Accuracy; |
| 34 | bool SetsToZero; |
| 35 | } EFI_TIME_CAPABILITIES; |
| 36 | |
| 37 | #endif // LLVM_LIBC_TYPES_EFI_TIME_H |
| 38 |
Warning: This file is not a C or C++ file. It does not have highlighting.
