# SetTime(TimeData)

> Assigns a new value to the World's current time.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public void SetTime(TimeData newTimeData)
```

### Parameters

**** (\[TimeData]\(/engine/7000.0/script-reference/unity/core/timedata)): The new time to assign for this World
