EmbeddedPkg/TimeBaseLib: Add function to get Week day.

This patch add function EfiTimeToWday() which returns
day of the week.
It is needed by our upcoming patches in edk2-platforms.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Meenakshi Aggarwal
2018-06-04 22:01:44 +05:30
committed by Leif Lindholm
parent 1b6e7633ca
commit 91c31ff04a
2 changed files with 43 additions and 3 deletions

View File

@@ -65,4 +65,12 @@ EfiTimeToEpoch (
IN EFI_TIME *Time
);
/**
returns Day of the week [0-6] 0=Sunday
**/
UINTN
EfiTimeToWday (
IN EFI_TIME *Time
);
#endif