> ## 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.

# PFTitleDataManagementServerGetTimeAsync

> Server API to retrieve the current PlayFab server time as a UTC timestamp, callable from trusted game servers to keep server-side game logic in sync.

Retrieves the current server time

## Syntax

```cpp theme={null}
HRESULT PFTitleDataManagementServerGetTimeAsync(  
    PFEntityHandle titleEntityHandle,  
    XAsyncBlock* async  
)  
```

### Parameters

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle for a title Entity obtained using PFAuthenticationGetEntityWithSecretKeyAsync.

**`async`**   XAsyncBlock\*\
**Inout**

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Win32, Linux, and macOS. This query retrieves the current time from one of the servers in PlayFab. Please note that due to clock drift between servers, there is a potential variance of up to 5 seconds. When the asynchronous task is complete, call [PFTitleDataManagementServerGetTimeGetResult](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementservergettimegetresult) to get the result.

## Requirements

**Header:** PFTitleDataManagement.h

## See also

[PFTitleDataManagement members](/services/playfab/api-references/c/pftitledatamanagement/pftitledatamanagement_members)


## Related topics

- [PFTitleDataManagementServerGetTimeGetResult](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementservergettimegetresult.md)
- [Services C API overview - PFTitleDataManagement.h](/services/playfab/api-references/c/pftitledatamanagement/pftitledatamanagement_members.md)
- [PFTitleDataManagementClientGetTimeAsync](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementclientgettimeasync.md)
- [PFTitleDataManagementGetTimeResult](/services/playfab/api-references/c/pftitledatamanagementtypes/structs/pftitledatamanagementgettimeresult.md)
- [PFTitleDataManagementClientGetTimeGetResult](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementclientgettimegetresult.md)
