summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/Include
diff options
context:
space:
mode:
authorMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>2018-06-04 22:01:44 +0530
committerLeif Lindholm <leif.lindholm@linaro.org>2018-06-05 16:18:21 +0100
commit91c31ff04a7a72b4b0e476972ad3c76e03a106a2 (patch)
tree294a7a4418f65f331a80e2777fad46c6d4bd7e0b /EmbeddedPkg/Include
parent1b6e7633cad8135547f337eeef47f446f57a2505 (diff)
downloadedk2-91c31ff04a7a72b4b0e476972ad3c76e03a106a2.tar.gz
edk2-91c31ff04a7a72b4b0e476972ad3c76e03a106a2.tar.bz2
edk2-91c31ff04a7a72b4b0e476972ad3c76e03a106a2.zip
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>
Diffstat (limited to 'EmbeddedPkg/Include')
-rw-r--r--EmbeddedPkg/Include/Library/TimeBaseLib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/EmbeddedPkg/Include/Library/TimeBaseLib.h b/EmbeddedPkg/Include/Library/TimeBaseLib.h
index fe3618e975..dd0b99f2b6 100644
--- a/EmbeddedPkg/Include/Library/TimeBaseLib.h
+++ b/EmbeddedPkg/Include/Library/TimeBaseLib.h
@@ -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