]>
git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Include/Library/TimeBaseLib.h
3 * Copyright (c) 2016, Hisilicon Limited. All rights reserved.
4 * Copyright (c) 2016-2019, Linaro Limited. All rights reserved.
6 * SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _TIME_BASE_LIB_H_
11 #define _TIME_BASE_LIB_H_
13 #include <Uefi/UefiBaseType.h>
15 // Define EPOCH (1970-JANUARY-01) in the Julian Date representation
16 #define EPOCH_JULIAN_DATE 2440588
19 #define SEC_PER_MIN ((UINTN) 60)
20 #define SEC_PER_HOUR ((UINTN) 3600)
21 #define SEC_PER_DAY ((UINTN) 86400)
22 #define SEC_PER_MONTH ((UINTN) 2,592,000)
23 #define SEC_PER_YEAR ((UINTN) 31,536,000)
44 Converts Epoch seconds (elapsed since 1970 JANUARY 01, 00:00:00 UTC) to EFI_TIME
49 IN UINTN EpochSeconds
,
54 Converts EFI_TIME to Epoch seconds (elapsed since 1970 JANUARY 01, 00:00:00 UTC)
63 returns Day of the week [0-6] 0=Sunday