TianoCore EDK2 master
|
#include "UefiShellLevel2CommandsLib.h"
Go to the source code of this file.
Data Structures | |
struct | TIME_ZONE_ITEM |
Functions | |
BOOLEAN | InternalIsTimeLikeString (IN CONST CHAR16 *String, IN CONST CHAR16 Char, IN CONST UINTN Min, IN CONST UINTN Max, IN CONST BOOLEAN MinusOk) |
SHELL_STATUS | CheckAndSetDate (IN CONST CHAR16 *DateString) |
SHELL_STATUS EFIAPI | ShellCommandRunDate (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
SHELL_STATUS | CheckAndSetTime (IN CONST CHAR16 *TimeString, IN CONST INT16 Tz, IN CONST UINT8 Daylight) |
SHELL_STATUS EFIAPI | ShellCommandRunTime (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
SHELL_STATUS | CheckAndSetTimeZone (IN CONST CHAR16 *TimeZoneString) |
SHELL_STATUS EFIAPI | ShellCommandRunTimeZone (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Main file for time, timezone, and date shell level 2 and shell level 3 functions.
(C) Copyright 2012-2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TimeDate.c.
SHELL_STATUS CheckAndSetDate | ( | IN CONST CHAR16 * | DateString | ) |
Verify that the DateString is valid and if so set that as the current date.
[in] | DateString | The pointer to a string representation of the date. |
SHELL_INVALID_PARAMETER | DateString was NULL. |
SHELL_INVALID_PARAMETER | DateString was mis-formatted. |
SHELL_SUCCESS | The operation was successful. |
Definition at line 89 of file TimeDate.c.
SHELL_STATUS CheckAndSetTime | ( | IN CONST CHAR16 * | TimeString, |
IN CONST INT16 | Tz, | ||
IN CONST UINT8 | Daylight | ||
) |
Verify that the TimeString is valid and if so set that as the current time.
[in] | TimeString | The pointer to a string representation of the time. |
[in] | Tz | The value to set for TimeZone. |
[in] | Daylight | The value to set for Daylight. |
SHELL_INVALID_PARAMETER | TimeString was NULL. |
SHELL_INVALID_PARAMETER | TimeString was mis-formatted. |
SHELL_SUCCESS | The operation was successful. |
Definition at line 310 of file TimeDate.c.
SHELL_STATUS CheckAndSetTimeZone | ( | IN CONST CHAR16 * | TimeZoneString | ) |
Verify that the TimeZoneString is valid and if so set that as the current timezone.
[in] | TimeZoneString | The pointer to a string representation of the timezone. |
SHELL_INVALID_PARAMETER | TimeZoneString was NULL. |
SHELL_INVALID_PARAMETER | TimeZoneString was mis-formatted. |
SHELL_SUCCESS | The operation was successful. |
Definition at line 720 of file TimeDate.c.
BOOLEAN InternalIsTimeLikeString | ( | IN CONST CHAR16 * | String, |
IN CONST CHAR16 | Char, | ||
IN CONST UINTN | Min, | ||
IN CONST UINTN | Max, | ||
IN CONST BOOLEAN | MinusOk | ||
) |
Determine if String is a valid representation for a time or date.
[in] | String | The pointer to the string to test. |
[in] | Char | The delimeter character. |
[in] | Min | The minimum value allowed. |
[in] | Max | The maximum value allowed. |
[in] | MinusOk | Whether negative numbers are permitted. |
TRUE | String is a valid representation. |
FALSE | String is invalid. |
Definition at line 25 of file TimeDate.c.
SHELL_STATUS EFIAPI ShellCommandRunDate | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'date' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 177 of file TimeDate.c.
SHELL_STATUS EFIAPI ShellCommandRunTime | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'time' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 409 of file TimeDate.c.
SHELL_STATUS EFIAPI ShellCommandRunTimeZone | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'timezone' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 821 of file TimeDate.c.
STATIC CONST SHELL_PARAM_ITEM TimeParamList2[] |
Definition at line 286 of file TimeDate.c.
STATIC CONST SHELL_PARAM_ITEM TimeParamList3[] |
Definition at line 291 of file TimeDate.c.
STATIC CONST TIME_ZONE_ITEM TimeZoneList[] |
Definition at line 670 of file TimeDate.c.
STATIC CONST SHELL_PARAM_ITEM TimeZoneParamList2[] |
Definition at line 658 of file TimeDate.c.
STATIC CONST SHELL_PARAM_ITEM TimeZoneParamList3[] |
Definition at line 663 of file TimeDate.c.