> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IXtfConsoleControlClient::GetSystemTime

> IXtfConsoleControlClient::GetSystemTime

# IXtfConsoleControlClient::GetSystemTime

Retrieves the system time from the current development console.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT GetSystemTime(
         XTFSYSTEMTIME *pSystemTime
)  
```

<a id="parametersSection" />

### Parameters

*pSystemTime*\
Type: XTFSYSTEMTIME\*

A pointer to an [XTFSYSTEMTIME](/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime) structure that receives the system time from the current development console.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

<a id="remarksSection" />

## Remarks

This function retrieves the system date and time from the current development console as an [XTFSYSTEMTIME](/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime) structure. The structure represents the system date and time in its various components, from year to millisecond. For more information about viewing the current system time on a development console, see [Developer Home on the console (Dev Home) (NDA topic)](/tools/tools-console/devhome/devhome).

<a id="requirementsSection" />

## Requirements

**Header:** xtfconsolecontrol.h

**Library:** xtfconsolecontrol.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="seealsoSection" />

## See also

[XTFSYSTEMTIME](/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime)\
[IXtfConsoleControlClient](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient)\
[XtfConsoleControl](/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members)


## Related topics

- [XTFSYSTEMTIME](/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime.md)
- [IXtfConsoleControlClient](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
- [IXtfConsoleControlClient::ShutdownConsole](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_shutdownconsole.md)
- [IXtfConsoleControlClient::GetRunningProcesses](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getrunningprocesses.md)
- [IXtfConsoleControlClient::GenerateStackDump](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_generatestackdump.md)
