]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Include/Library/TimeBaseLib.h
EmbeddedPkg/TimeBaseLib: Add function to check Timezone and Daylight
authorNhi Pham <nhi@os.amperecomputing.com>
Wed, 6 Jan 2021 16:09:02 +0000 (23:09 +0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jan 2021 16:43:48 +0000 (16:43 +0000)
commite31dc4717c75d8e771dfa5c9b1648fa20d88ab0d
treebdbf235236e0f97c791ad02de8b94d2e7a3b81a9
parentad16388d69c653333275fcb266617d7fa0c24ff4
EmbeddedPkg/TimeBaseLib: Add function to check Timezone and Daylight

This adds two functions IsValidTimeZone() and IsValidDaylight() to check
the time zone and daylight value from EFI time. These functions are
retrieved from the RealTimeClockRuntimeDxe module as they reduce
duplicated code in RTC modules.

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
EmbeddedPkg/Include/Library/TimeBaseLib.h
EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.c