]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/Library/TimeBaseLib.h
EmbeddedPkg: improve TimeBaseLib type safety
[mirror_edk2.git] / EmbeddedPkg / Include / Library / TimeBaseLib.h
index fe3618e975eeaf79ae1c50d872f8e9274b3426e5..4103c89b38913c3b54b9df1bacc0e0da51d2c62f 100644 (file)
@@ -1,15 +1,9 @@
 /** @file\r
 *\r
 *  Copyright (c) 2016, Hisilicon Limited. All rights reserved.\r
-*  Copyright (c) 2016, Linaro Limited. All rights reserved.\r
+*  Copyright (c) 2016-2019, Linaro Limited. All rights reserved.\r
 *\r
-*  This program and the accompanying materials\r
-*  are licensed and made available under the terms and conditions of the BSD License\r
-*  which accompanies this distribution.  The full text of the license may be found at\r
-*  http://opensource.org/licenses/bsd-license.php\r
-*\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 *\r
 **/\r
 \r
@@ -59,10 +53,18 @@ EpochToEfiTime (
 /**\r
   Converts EFI_TIME to Epoch seconds (elapsed since 1970 JANUARY 01, 00:00:00 UTC)\r
  **/\r
-UINTN\r
+UINT32\r
 EFIAPI\r
 EfiTimeToEpoch (\r
   IN  EFI_TIME  *Time\r
   );\r
 \r
+/**\r
+  returns Day of the week [0-6] 0=Sunday\r
+ **/\r
+UINTN\r
+EfiTimeToWday (\r
+  IN  EFI_TIME  *Time\r
+  );\r
+\r
 #endif\r