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

# GetSystemTime

> IXtfConsoleControlClient::GetSystemTime

Retrieves the system time from the current development console.

## Syntax

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

### Parameters

*pSystemTime*\
Type: XTFSYSTEMTIME\*

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

### Return value

Type: HRESULT

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

## Remarks

This function retrieves the system date and time from the current development console as an [XTFSYSTEMTIME](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime.md) 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)](https://docs.xbox.com/tools/tools-console/devhome/devhome.md).

## Requirements

**Header:** xtfconsolecontrol.h

**Library:** xtfconsolecontrol.lib

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

## See also

[XTFSYSTEMTIME](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime.md)\
[IXtfConsoleControlClient](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)\
[XtfConsoleControl](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members.md)


## Related topics

- [XTFSYSTEMTIME](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime.md)
- [IXtfConsoleControlClient (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
- [XtfGetSystemUpTime](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfgetsystemuptime-xtfapi-xbox-windows-m.md)
- [Get Time](https://docs.xbox.com/services/playfab/api-references/rest/client/title-wide-data-management/get-time.md)
- [XSystemGetAnalyticsInfo](https://docs.xbox.com/reference/system/xsystem/functions/xsystemgetanalyticsinfo.md)
