# sm.game.setTimeOfDay

Sets the fraction value of how far the current day has progressed.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.game.setTimeOfDay( time )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.game.md#settimeofday)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `time` | number | The fraction of the day cycle. |
